Index: code/branches/main_reto_vs05/bin/Debug/Ogre.log
===================================================================
--- code/branches/main_reto_vs05/bin/Debug/Ogre.log	(revision 160)
+++ code/branches/main_reto_vs05/bin/Debug/Ogre.log	(revision 161)
@@ -1,307 +1,309 @@
-23:00:53: Creating resource group General
-23:00:53: Creating resource group Internal
-23:00:53: Creating resource group Autodetect
-23:00:53: SceneManagerFactory for type 'DefaultSceneManager' registered.
-23:00:53: Registering ResourceManager for type Material
-23:00:53: Registering ResourceManager for type Mesh
-23:00:53: Registering ResourceManager for type Skeleton
-23:00:53: MovableObjectFactory for type 'ParticleSystem' registered.
-23:00:53: OverlayElementFactory for type Panel registered.
-23:00:53: OverlayElementFactory for type BorderPanel registered.
-23:00:53: OverlayElementFactory for type TextArea registered.
-23:00:53: Registering ResourceManager for type Font
-23:00:53: ArchiveFactory for archive type FileSystem registered.
-23:00:53: ArchiveFactory for archive type Zip registered.
-23:00:53: FreeImage version: 3.9.2
-23:00:53: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
-23:00:53: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
-23:00:53: DDS codec registering
-23:00:53: Registering ResourceManager for type HighLevelGpuProgram
-23:00:53: Registering ResourceManager for type Compositor
-23:00:53: MovableObjectFactory for type 'Entity' registered.
-23:00:53: MovableObjectFactory for type 'Light' registered.
-23:00:53: MovableObjectFactory for type 'BillboardSet' registered.
-23:00:53: MovableObjectFactory for type 'ManualObject' registered.
-23:00:53: MovableObjectFactory for type 'BillboardChain' registered.
-23:00:53: MovableObjectFactory for type 'RibbonTrail' registered.
-23:00:53: Loading library .\RenderSystem_Direct3D9_d
-23:00:53: Installing plugin: D3D9 RenderSystem
-23:00:53: D3D9 : Direct3D9 Rendering Subsystem created.
-23:00:54: D3D9: Driver Detection Starts
-23:00:54: D3D9: Driver Detection Ends
-23:00:54: Plugin successfully installed
-23:00:54: Loading library .\RenderSystem_GL_d
-23:00:54: Installing plugin: GL RenderSystem
-23:00:54: OpenGL Rendering Subsystem created.
-23:00:54: Plugin successfully installed
-23:00:54: Loading library .\Plugin_ParticleFX_d
-23:00:54: Installing plugin: ParticleFX
-23:00:54: Particle Emitter Type 'Point' registered
-23:00:54: Particle Emitter Type 'Box' registered
-23:00:54: Particle Emitter Type 'Ellipsoid' registered
-23:00:54: Particle Emitter Type 'Cylinder' registered
-23:00:54: Particle Emitter Type 'Ring' registered
-23:00:54: Particle Emitter Type 'HollowEllipsoid' registered
-23:00:54: Particle Affector Type 'LinearForce' registered
-23:00:54: Particle Affector Type 'ColourFader' registered
-23:00:54: Particle Affector Type 'ColourFader2' registered
-23:00:54: Particle Affector Type 'ColourImage' registered
-23:00:54: Particle Affector Type 'ColourInterpolator' registered
-23:00:54: Particle Affector Type 'Scaler' registered
-23:00:54: Particle Affector Type 'Rotator' registered
-23:00:54: Particle Affector Type 'DirectionRandomiser' registered
-23:00:54: Particle Affector Type 'DeflectorPlane' registered
-23:00:54: Plugin successfully installed
-23:00:54: Loading library .\Plugin_BSPSceneManager_d
-23:00:54: Installing plugin: BSP Scene Manager
-23:00:54: Plugin successfully installed
-23:00:54: Loading library .\Plugin_OctreeSceneManager_d
-23:00:54: Installing plugin: Octree & Terrain Scene Manager
-23:00:54: Plugin successfully installed
-23:00:54: Loading library .\Plugin_CgProgramManager_d
-23:00:54: Installing plugin: Cg Program Manager
-23:00:54: Plugin successfully installed
-23:00:54: *-*-* OGRE Initialising
-23:00:54: *-*-* Version 1.4.5 (Eihort)
-23:00:54: Creating resource group Bootstrap
-23:00:54: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
-23:00:54: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
-23:00:54: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
-23:00:54: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
-23:00:54: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
-23:00:54: D3D9 : RenderSystem Option: Anti aliasing = Level 4
-23:00:54: D3D9 : RenderSystem Option: Floating-point mode = Fastest
-23:00:54: D3D9 : RenderSystem Option: Full Screen = No
-23:00:54: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
-23:00:54: D3D9 : RenderSystem Option: VSync = Yes
-23:00:54: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
-23:00:54: CPU Identifier & Features
-23:00:54: -------------------------
-23:00:54:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
-23:00:54:  *      SSE: yes
-23:00:54:  *     SSE2: yes
-23:00:54:  *     SSE3: yes
-23:00:54:  *      MMX: yes
-23:00:54:  *   MMXEXT: yes
-23:00:54:  *    3DNOW: no
-23:00:54:  * 3DNOWEXT: no
-23:00:54:  *     CMOV: yes
-23:00:54:  *      TSC: yes
-23:00:54:  *      FPU: yes
-23:00:54:  *      PRO: yes
-23:00:54:  *       HT: no
-23:00:54: -------------------------
-23:00:54: D3D9 : Subsystem Initialising
-23:00:54: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1024x768 windowed  miscParams: FSAA=4 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true 
-23:00:54: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1024x768, 32bpp
-23:00:55: Registering ResourceManager for type Texture
-23:00:55: Registering ResourceManager for type GpuProgram
-23:00:55: RenderSystem capabilities
-23:00:55: -------------------------
-23:00:55:  * Hardware generation of mipmaps: yes
-23:00:55:  * Texture blending: yes
-23:00:55:  * Anisotropic texture filtering: yes
-23:00:55:  * Dot product texture operation: yes
-23:00:55:  * Cube mapping: yes
-23:00:55:  * Hardware stencil buffer: yes
-23:00:55:    - Stencil depth: 8
-23:00:55:    - Two sided stencil support: yes
-23:00:55:    - Wrap stencil values: yes
-23:00:55:  * Hardware vertex / index buffers: yes
-23:00:55:  * Vertex programs: yes
-23:00:55:    - Max vertex program version: vs_3_0
-23:00:55:  * Fragment programs: yes
-23:00:55:    - Max fragment program version: ps_3_0
-23:00:55:  * Texture Compression: yes
-23:00:55:    - DXT: yes
-23:00:55:    - VTC: no
-23:00:55:  * Scissor Rectangle: yes
-23:00:55:  * Hardware Occlusion Query: yes
-23:00:55:  * User clip planes: yes
-23:00:55:  * VET_UBYTE4 vertex element type: yes
-23:00:55:  * Infinite far plane projection: yes
-23:00:55:  * Hardware render-to-texture: yes
-23:00:55:  * Floating point textures: yes
-23:00:55:  * Non-power-of-two textures: yes (limited)
-23:00:55:  * Volume textures: yes
-23:00:55:  * Multiple Render Targets: 4
-23:00:55:  * Point Sprites: yes
-23:00:55:  * Extended point parameters: yes
-23:00:55:  * Max Point Size: 256
-23:00:55:  * Vertex texture fetch: no
-23:00:55: ***************************************
-23:00:55: *** D3D9 : Subsystem Initialised OK ***
-23:00:55: ***************************************
-23:00:55: ResourceBackgroundQueue - threading disabled
-23:00:55: Particle Renderer Type 'billboard' registered
-23:00:55: SceneManagerFactory for type 'BspSceneManager' registered.
-23:00:55: Registering ResourceManager for type BspLevel
-23:00:55: SceneManagerFactory for type 'OctreeSceneManager' registered.
-23:00:55: SceneManagerFactory for type 'TerrainSceneManager' registered.
-23:00:55: Parsing scripts for resource group Autodetect
-23:00:55: Finished parsing scripts for resource group Autodetect
-23:00:55: Parsing scripts for resource group Bootstrap
-23:00:55: Parsing script OgreCore.material
-23:00:55: Parsing script OgreProfiler.material
-23:00:55: Parsing script Ogre.fontdef
-23:00:55: Parsing script OgreDebugPanel.overlay
-23:00:55: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
-23:00:55: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
-23:00:55: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
-23:00:55: Font BlueHighwayusing texture size 512x512
-23:00:55: Info: Freetype returned null for character 127 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 128 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 129 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 130 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 131 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 132 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 133 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 134 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 135 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 136 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 137 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 138 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 139 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 140 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 141 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 142 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 143 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 144 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 145 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 146 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 147 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 148 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 149 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 150 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 151 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 152 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 153 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 154 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 155 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 156 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 157 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 158 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 159 in font BlueHighway
-23:00:55: Info: Freetype returned null for character 160 in font BlueHighway
-23:00:55: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
-23:00:55: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
-23:00:55: Parsing script OgreLoadingPanel.overlay
-23:00:55: Finished parsing scripts for resource group Bootstrap
-23:00:55: Parsing scripts for resource group General
-23:00:55: Parsing script Examples.program
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
+16:52:51: Creating resource group General
+16:52:51: Creating resource group Internal
+16:52:51: Creating resource group Autodetect
+16:52:51: SceneManagerFactory for type 'DefaultSceneManager' registered.
+16:52:51: Registering ResourceManager for type Material
+16:52:51: Registering ResourceManager for type Mesh
+16:52:51: Registering ResourceManager for type Skeleton
+16:52:51: MovableObjectFactory for type 'ParticleSystem' registered.
+16:52:51: OverlayElementFactory for type Panel registered.
+16:52:51: OverlayElementFactory for type BorderPanel registered.
+16:52:51: OverlayElementFactory for type TextArea registered.
+16:52:51: Registering ResourceManager for type Font
+16:52:51: ArchiveFactory for archive type FileSystem registered.
+16:52:51: ArchiveFactory for archive type Zip registered.
+16:52:51: FreeImage version: 3.9.2
+16:52:51: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
+16:52:51: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
+16:52:51: DDS codec registering
+16:52:51: Registering ResourceManager for type HighLevelGpuProgram
+16:52:51: Registering ResourceManager for type Compositor
+16:52:51: MovableObjectFactory for type 'Entity' registered.
+16:52:51: MovableObjectFactory for type 'Light' registered.
+16:52:51: MovableObjectFactory for type 'BillboardSet' registered.
+16:52:51: MovableObjectFactory for type 'ManualObject' registered.
+16:52:51: MovableObjectFactory for type 'BillboardChain' registered.
+16:52:51: MovableObjectFactory for type 'RibbonTrail' registered.
+16:52:51: Loading library .\RenderSystem_Direct3D9_d
+16:52:51: Installing plugin: D3D9 RenderSystem
+16:52:51: D3D9 : Direct3D9 Rendering Subsystem created.
+16:52:51: D3D9: Driver Detection Starts
+16:52:51: D3D9: Driver Detection Ends
+16:52:51: Plugin successfully installed
+16:52:51: Loading library .\RenderSystem_GL_d
+16:52:51: Installing plugin: GL RenderSystem
+16:52:51: OpenGL Rendering Subsystem created.
+16:52:51: Plugin successfully installed
+16:52:51: Loading library .\Plugin_ParticleFX_d
+16:52:51: Installing plugin: ParticleFX
+16:52:51: Particle Emitter Type 'Point' registered
+16:52:51: Particle Emitter Type 'Box' registered
+16:52:51: Particle Emitter Type 'Ellipsoid' registered
+16:52:51: Particle Emitter Type 'Cylinder' registered
+16:52:51: Particle Emitter Type 'Ring' registered
+16:52:51: Particle Emitter Type 'HollowEllipsoid' registered
+16:52:51: Particle Affector Type 'LinearForce' registered
+16:52:51: Particle Affector Type 'ColourFader' registered
+16:52:51: Particle Affector Type 'ColourFader2' registered
+16:52:51: Particle Affector Type 'ColourImage' registered
+16:52:51: Particle Affector Type 'ColourInterpolator' registered
+16:52:51: Particle Affector Type 'Scaler' registered
+16:52:51: Particle Affector Type 'Rotator' registered
+16:52:51: Particle Affector Type 'DirectionRandomiser' registered
+16:52:51: Particle Affector Type 'DeflectorPlane' registered
+16:52:51: Plugin successfully installed
+16:52:51: Loading library .\Plugin_BSPSceneManager_d
+16:52:52: Installing plugin: BSP Scene Manager
+16:52:52: Plugin successfully installed
+16:52:52: Loading library .\Plugin_OctreeSceneManager_d
+16:52:52: Installing plugin: Octree & Terrain Scene Manager
+16:52:52: Plugin successfully installed
+16:52:52: Loading library .\Plugin_CgProgramManager_d
+16:52:52: Installing plugin: Cg Program Manager
+16:52:52: Plugin successfully installed
+16:52:52: *-*-* OGRE Initialising
+16:52:52: *-*-* Version 1.4.5 (Eihort)
+16:52:52: Creating resource group Bootstrap
+16:52:52: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
+16:52:52: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
+16:52:52: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
+16:52:52: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
+16:52:52: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
+16:52:52: D3D9 : RenderSystem Option: Anti aliasing = Level 4
+16:52:52: D3D9 : RenderSystem Option: Floating-point mode = Fastest
+16:52:52: D3D9 : RenderSystem Option: Full Screen = No
+16:52:52: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
+16:52:52: D3D9 : RenderSystem Option: VSync = Yes
+16:52:52: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
+16:52:52: CPU Identifier & Features
+16:52:52: -------------------------
+16:52:52:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
+16:52:52:  *      SSE: yes
+16:52:52:  *     SSE2: yes
+16:52:52:  *     SSE3: yes
+16:52:52:  *      MMX: yes
+16:52:52:  *   MMXEXT: yes
+16:52:52:  *    3DNOW: no
+16:52:52:  * 3DNOWEXT: no
+16:52:52:  *     CMOV: yes
+16:52:52:  *      TSC: yes
+16:52:52:  *      FPU: yes
+16:52:52:  *      PRO: yes
+16:52:52:  *       HT: no
+16:52:52: -------------------------
+16:52:52: D3D9 : Subsystem Initialising
+16:52:52: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1024x768 windowed  miscParams: FSAA=4 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true 
+16:52:52: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1024x768, 32bpp
+16:52:52: Registering ResourceManager for type Texture
+16:52:52: Registering ResourceManager for type GpuProgram
+16:52:52: RenderSystem capabilities
+16:52:52: -------------------------
+16:52:52:  * Hardware generation of mipmaps: yes
+16:52:52:  * Texture blending: yes
+16:52:52:  * Anisotropic texture filtering: yes
+16:52:52:  * Dot product texture operation: yes
+16:52:52:  * Cube mapping: yes
+16:52:52:  * Hardware stencil buffer: yes
+16:52:52:    - Stencil depth: 8
+16:52:52:    - Two sided stencil support: yes
+16:52:52:    - Wrap stencil values: yes
+16:52:52:  * Hardware vertex / index buffers: yes
+16:52:52:  * Vertex programs: yes
+16:52:52:    - Max vertex program version: vs_3_0
+16:52:52:  * Fragment programs: yes
+16:52:52:    - Max fragment program version: ps_3_0
+16:52:52:  * Texture Compression: yes
+16:52:52:    - DXT: yes
+16:52:52:    - VTC: no
+16:52:52:  * Scissor Rectangle: yes
+16:52:52:  * Hardware Occlusion Query: yes
+16:52:52:  * User clip planes: yes
+16:52:52:  * VET_UBYTE4 vertex element type: yes
+16:52:52:  * Infinite far plane projection: yes
+16:52:52:  * Hardware render-to-texture: yes
+16:52:52:  * Floating point textures: yes
+16:52:52:  * Non-power-of-two textures: yes (limited)
+16:52:52:  * Volume textures: yes
+16:52:52:  * Multiple Render Targets: 4
+16:52:52:  * Point Sprites: yes
+16:52:52:  * Extended point parameters: yes
+16:52:52:  * Max Point Size: 256
+16:52:52:  * Vertex texture fetch: no
+16:52:52: ***************************************
+16:52:52: *** D3D9 : Subsystem Initialised OK ***
+16:52:52: ***************************************
+16:52:52: ResourceBackgroundQueue - threading disabled
+16:52:52: Particle Renderer Type 'billboard' registered
+16:52:52: SceneManagerFactory for type 'BspSceneManager' registered.
+16:52:52: Registering ResourceManager for type BspLevel
+16:52:52: SceneManagerFactory for type 'OctreeSceneManager' registered.
+16:52:52: SceneManagerFactory for type 'TerrainSceneManager' registered.
+16:52:52: Parsing scripts for resource group Autodetect
+16:52:52: Finished parsing scripts for resource group Autodetect
+16:52:52: Parsing scripts for resource group Bootstrap
+16:52:52: Parsing script OgreCore.material
+16:52:52: Parsing script OgreProfiler.material
+16:52:52: Parsing script Ogre.fontdef
+16:52:52: Parsing script OgreDebugPanel.overlay
+16:52:52: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
+16:52:52: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
+16:52:52: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
+16:52:52: Font BlueHighwayusing texture size 512x512
+16:52:52: Info: Freetype returned null for character 127 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 128 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 129 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 130 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 131 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 132 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 133 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 134 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 135 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 136 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 137 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 138 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 139 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 140 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 141 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 142 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 143 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 144 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 145 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 146 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 147 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 148 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 149 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 150 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 151 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 152 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 153 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 154 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 155 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 156 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 157 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 158 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 159 in font BlueHighway
+16:52:52: Info: Freetype returned null for character 160 in font BlueHighway
+16:52:52: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
+16:52:52: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
+16:52:52: Parsing script OgreLoadingPanel.overlay
+16:52:52: Finished parsing scripts for resource group Bootstrap
+16:52:52: Parsing scripts for resource group General
+16:52:52: Parsing script Examples.program
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: Parsing script Example.material
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: Parsing script Example.material
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
-23:00:55: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:00:55: Parsing script Ogre.material
-23:00:55: Parsing script Examples.compositor
-23:00:55: Parsing script sample.fontdef
-23:00:55: Finished parsing scripts for resource group General
-23:00:55: Parsing scripts for resource group Internal
-23:00:55: Finished parsing scripts for resource group Internal
-23:00:55: Mesh: Loading ogrehead.mesh.
-23:00:55: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:00:55: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:00:55: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:00:55: D3D9 : ***** Dimensions altered by the render system
-23:00:55: D3D9 : ***** Source image dimensions : 96x96
-23:00:55: D3D9 : ***** Texture dimensions : 128x128
-23:00:55: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
-23:00:55: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:00:56: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:00:56: Mesh: Loading fish.mesh.
-23:00:56: Skeleton: Loading fish.skeleton
-23:00:56: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:00:56: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
-23:00:56: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
-23:00:56: *** Initializing OIS ***
-23:01:04: Unregistering ResourceManager for type BspLevel
-23:01:04: *-*-* OGRE Shutdown
-23:01:04: Unregistering ResourceManager for type Compositor
-23:01:04: Unregistering ResourceManager for type Font
-23:01:04: Unregistering ResourceManager for type Skeleton
-23:01:04: Unregistering ResourceManager for type Mesh
-23:01:04: Unregistering ResourceManager for type HighLevelGpuProgram
-23:01:04: Uninstalling plugin: Cg Program Manager
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\Plugin_CgProgramManager_d
-23:01:04: Uninstalling plugin: Octree & Terrain Scene Manager
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\Plugin_OctreeSceneManager_d
-23:01:04: Uninstalling plugin: BSP Scene Manager
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\Plugin_BSPSceneManager_d
-23:01:04: Uninstalling plugin: ParticleFX
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\Plugin_ParticleFX_d
-23:01:04: Uninstalling plugin: GL RenderSystem
-23:01:04: *** Stopping Win32GL Subsystem ***
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\RenderSystem_GL_d
-23:01:04: Uninstalling plugin: D3D9 RenderSystem
-23:01:04: Render Target 'OGRE Render Window' Average FPS: 59.6204 Best FPS: 60.0985 Worst FPS: 26.7062
-23:01:04: D3D9 : Shutting down cleanly.
-23:01:04: Unregistering ResourceManager for type Texture
-23:01:04: Unregistering ResourceManager for type GpuProgram
-23:01:04: D3D9 : Direct3D9 Rendering Subsystem destroyed.
-23:01:04: Plugin successfully uninstalled
-23:01:04: Unloading library .\RenderSystem_Direct3D9_d
-23:01:04: Unregistering ResourceManager for type Material
+16:52:52: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
+16:52:52: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+16:52:52: Parsing script Ogre.material
+16:52:52: Parsing script Examples.compositor
+16:52:52: Parsing script sample.fontdef
+16:52:52: Finished parsing scripts for resource group General
+16:52:52: Parsing scripts for resource group Internal
+16:52:52: Finished parsing scripts for resource group Internal
+16:52:52: Mesh: Loading ogrehead.mesh.
+16:52:52: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:52:53: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:52:53: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:52:53: D3D9 : ***** Dimensions altered by the render system
+16:52:53: D3D9 : ***** Source image dimensions : 96x96
+16:52:53: D3D9 : ***** Texture dimensions : 128x128
+16:52:53: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
+16:52:53: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+16:52:53: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:52:53: Mesh: Loading fish.mesh.
+16:52:53: Skeleton: Loading fish.skeleton
+16:52:53: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:52:53: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
+16:52:53: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
+16:52:53: *** Initializing OIS ***
+16:54:36: Mesh: Loading Barrel.mesh.
+16:54:36: Texture: RustyBarrel.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+16:54:58: Unregistering ResourceManager for type BspLevel
+16:54:58: *-*-* OGRE Shutdown
+16:54:58: Unregistering ResourceManager for type Compositor
+16:54:58: Unregistering ResourceManager for type Font
+16:54:58: Unregistering ResourceManager for type Skeleton
+16:54:58: Unregistering ResourceManager for type Mesh
+16:54:58: Unregistering ResourceManager for type HighLevelGpuProgram
+16:54:58: Uninstalling plugin: Cg Program Manager
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\Plugin_CgProgramManager_d
+16:54:58: Uninstalling plugin: Octree & Terrain Scene Manager
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\Plugin_OctreeSceneManager_d
+16:54:58: Uninstalling plugin: BSP Scene Manager
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\Plugin_BSPSceneManager_d
+16:54:58: Uninstalling plugin: ParticleFX
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\Plugin_ParticleFX_d
+16:54:58: Uninstalling plugin: GL RenderSystem
+16:54:58: *** Stopping Win32GL Subsystem ***
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\RenderSystem_GL_d
+16:54:58: Uninstalling plugin: D3D9 RenderSystem
+16:54:58: Render Target 'OGRE Render Window' Average FPS: 29.9978 Best FPS: 60.5159 Worst FPS: 12.8586
+16:54:58: D3D9 : Shutting down cleanly.
+16:54:58: Unregistering ResourceManager for type Texture
+16:54:58: Unregistering ResourceManager for type GpuProgram
+16:54:58: D3D9 : Direct3D9 Rendering Subsystem destroyed.
+16:54:58: Plugin successfully uninstalled
+16:54:58: Unloading library .\RenderSystem_Direct3D9_d
+16:54:58: Unregistering ResourceManager for type Material
Index: code/branches/main_reto_vs05/bin/Release/Ogre.log
===================================================================
--- code/branches/main_reto_vs05/bin/Release/Ogre.log	(revision 160)
+++ code/branches/main_reto_vs05/bin/Release/Ogre.log	(revision 161)
@@ -1,307 +1,307 @@
-23:01:45: Creating resource group General
-23:01:45: Creating resource group Internal
-23:01:45: Creating resource group Autodetect
-23:01:45: SceneManagerFactory for type 'DefaultSceneManager' registered.
-23:01:45: Registering ResourceManager for type Material
-23:01:45: Registering ResourceManager for type Mesh
-23:01:45: Registering ResourceManager for type Skeleton
-23:01:45: MovableObjectFactory for type 'ParticleSystem' registered.
-23:01:45: OverlayElementFactory for type Panel registered.
-23:01:45: OverlayElementFactory for type BorderPanel registered.
-23:01:45: OverlayElementFactory for type TextArea registered.
-23:01:45: Registering ResourceManager for type Font
-23:01:45: ArchiveFactory for archive type FileSystem registered.
-23:01:45: ArchiveFactory for archive type Zip registered.
-23:01:45: FreeImage version: 3.9.2
-23:01:45: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
-23:01:45: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
-23:01:45: DDS codec registering
-23:01:45: Registering ResourceManager for type HighLevelGpuProgram
-23:01:45: Registering ResourceManager for type Compositor
-23:01:45: MovableObjectFactory for type 'Entity' registered.
-23:01:45: MovableObjectFactory for type 'Light' registered.
-23:01:45: MovableObjectFactory for type 'BillboardSet' registered.
-23:01:45: MovableObjectFactory for type 'ManualObject' registered.
-23:01:45: MovableObjectFactory for type 'BillboardChain' registered.
-23:01:45: MovableObjectFactory for type 'RibbonTrail' registered.
-23:01:45: Loading library .\RenderSystem_Direct3D9
-23:01:45: Installing plugin: D3D9 RenderSystem
-23:01:45: D3D9 : Direct3D9 Rendering Subsystem created.
-23:01:45: D3D9: Driver Detection Starts
-23:01:45: D3D9: Driver Detection Ends
-23:01:45: Plugin successfully installed
-23:01:45: Loading library .\RenderSystem_GL
-23:01:45: Installing plugin: GL RenderSystem
-23:01:45: OpenGL Rendering Subsystem created.
-23:01:46: Plugin successfully installed
-23:01:46: Loading library .\Plugin_ParticleFX
-23:01:46: Installing plugin: ParticleFX
-23:01:46: Particle Emitter Type 'Point' registered
-23:01:46: Particle Emitter Type 'Box' registered
-23:01:46: Particle Emitter Type 'Ellipsoid' registered
-23:01:46: Particle Emitter Type 'Cylinder' registered
-23:01:46: Particle Emitter Type 'Ring' registered
-23:01:46: Particle Emitter Type 'HollowEllipsoid' registered
-23:01:46: Particle Affector Type 'LinearForce' registered
-23:01:46: Particle Affector Type 'ColourFader' registered
-23:01:46: Particle Affector Type 'ColourFader2' registered
-23:01:46: Particle Affector Type 'ColourImage' registered
-23:01:46: Particle Affector Type 'ColourInterpolator' registered
-23:01:46: Particle Affector Type 'Scaler' registered
-23:01:46: Particle Affector Type 'Rotator' registered
-23:01:46: Particle Affector Type 'DirectionRandomiser' registered
-23:01:46: Particle Affector Type 'DeflectorPlane' registered
-23:01:46: Plugin successfully installed
-23:01:46: Loading library .\Plugin_BSPSceneManager
-23:01:46: Installing plugin: BSP Scene Manager
-23:01:46: Plugin successfully installed
-23:01:46: Loading library .\Plugin_OctreeSceneManager
-23:01:46: Installing plugin: Octree & Terrain Scene Manager
-23:01:46: Plugin successfully installed
-23:01:46: Loading library .\Plugin_CgProgramManager
-23:01:46: Installing plugin: Cg Program Manager
-23:01:46: Plugin successfully installed
-23:01:46: *-*-* OGRE Initialising
-23:01:46: *-*-* Version 1.4.5 (Eihort)
-23:01:46: Creating resource group Bootstrap
-23:01:46: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
-23:01:46: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
-23:01:46: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
-23:01:46: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
-23:01:46: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
-23:01:46: D3D9 : RenderSystem Option: Anti aliasing = Level 6
-23:01:46: D3D9 : RenderSystem Option: Floating-point mode = Consistent
-23:01:46: D3D9 : RenderSystem Option: Full Screen = Yes
-23:01:46: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
-23:01:46: D3D9 : RenderSystem Option: VSync = Yes
-23:01:46: D3D9 : RenderSystem Option: Video Mode = 1400 x 1050 @ 32-bit colour
-23:01:46: CPU Identifier & Features
-23:01:46: -------------------------
-23:01:46:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
-23:01:46:  *      SSE: yes
-23:01:46:  *     SSE2: yes
-23:01:46:  *     SSE3: yes
-23:01:46:  *      MMX: yes
-23:01:46:  *   MMXEXT: yes
-23:01:46:  *    3DNOW: no
-23:01:46:  * 3DNOWEXT: no
-23:01:46:  *     CMOV: yes
-23:01:46:  *      TSC: yes
-23:01:46:  *      FPU: yes
-23:01:46:  *      PRO: yes
-23:01:46:  *       HT: no
-23:01:46: -------------------------
-23:01:46: D3D9 : Subsystem Initialising
-23:01:46: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1400x1050 fullscreen  miscParams: FSAA=6 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true 
-23:01:46: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1400x1050, 32bpp
-23:01:46: Registering ResourceManager for type Texture
-23:01:46: Registering ResourceManager for type GpuProgram
-23:01:46: RenderSystem capabilities
-23:01:46: -------------------------
-23:01:46:  * Hardware generation of mipmaps: yes
-23:01:46:  * Texture blending: yes
-23:01:46:  * Anisotropic texture filtering: yes
-23:01:46:  * Dot product texture operation: yes
-23:01:46:  * Cube mapping: yes
-23:01:46:  * Hardware stencil buffer: yes
-23:01:46:    - Stencil depth: 8
-23:01:46:    - Two sided stencil support: yes
-23:01:46:    - Wrap stencil values: yes
-23:01:46:  * Hardware vertex / index buffers: yes
-23:01:46:  * Vertex programs: yes
-23:01:46:    - Max vertex program version: vs_3_0
-23:01:46:  * Fragment programs: yes
-23:01:46:    - Max fragment program version: ps_3_0
-23:01:46:  * Texture Compression: yes
-23:01:46:    - DXT: yes
-23:01:46:    - VTC: no
-23:01:46:  * Scissor Rectangle: yes
-23:01:46:  * Hardware Occlusion Query: yes
-23:01:46:  * User clip planes: yes
-23:01:46:  * VET_UBYTE4 vertex element type: yes
-23:01:46:  * Infinite far plane projection: yes
-23:01:46:  * Hardware render-to-texture: yes
-23:01:46:  * Floating point textures: yes
-23:01:46:  * Non-power-of-two textures: yes (limited)
-23:01:46:  * Volume textures: yes
-23:01:46:  * Multiple Render Targets: 4
-23:01:46:  * Point Sprites: yes
-23:01:46:  * Extended point parameters: yes
-23:01:46:  * Max Point Size: 256
-23:01:46:  * Vertex texture fetch: no
-23:01:46: ***************************************
-23:01:46: *** D3D9 : Subsystem Initialised OK ***
-23:01:46: ***************************************
-23:01:46: ResourceBackgroundQueue - threading disabled
-23:01:46: Particle Renderer Type 'billboard' registered
-23:01:46: SceneManagerFactory for type 'BspSceneManager' registered.
-23:01:46: Registering ResourceManager for type BspLevel
-23:01:46: SceneManagerFactory for type 'OctreeSceneManager' registered.
-23:01:46: SceneManagerFactory for type 'TerrainSceneManager' registered.
-23:01:46: Parsing scripts for resource group Autodetect
-23:01:46: Finished parsing scripts for resource group Autodetect
-23:01:46: Parsing scripts for resource group Bootstrap
-23:01:46: Parsing script OgreCore.material
-23:01:46: Parsing script OgreProfiler.material
-23:01:46: Parsing script Ogre.fontdef
-23:01:46: Parsing script OgreDebugPanel.overlay
-23:01:46: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
-23:01:46: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
-23:01:46: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
-23:01:46: Font BlueHighwayusing texture size 512x512
-23:01:46: Info: Freetype returned null for character 127 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 128 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 129 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 130 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 131 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 132 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 133 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 134 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 135 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 136 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 137 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 138 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 139 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 140 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 141 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 142 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 143 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 144 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 145 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 146 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 147 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 148 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 149 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 150 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 151 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 152 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 153 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 154 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 155 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 156 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 157 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 158 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 159 in font BlueHighway
-23:01:46: Info: Freetype returned null for character 160 in font BlueHighway
-23:01:46: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
-23:01:46: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
-23:01:46: Parsing script OgreLoadingPanel.overlay
-23:01:46: Finished parsing scripts for resource group Bootstrap
-23:01:46: Parsing scripts for resource group General
-23:01:46: Parsing script Examples.program
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
+12:38:58: Creating resource group General
+12:38:58: Creating resource group Internal
+12:38:58: Creating resource group Autodetect
+12:38:58: SceneManagerFactory for type 'DefaultSceneManager' registered.
+12:38:58: Registering ResourceManager for type Material
+12:38:58: Registering ResourceManager for type Mesh
+12:38:58: Registering ResourceManager for type Skeleton
+12:38:58: MovableObjectFactory for type 'ParticleSystem' registered.
+12:38:58: OverlayElementFactory for type Panel registered.
+12:38:58: OverlayElementFactory for type BorderPanel registered.
+12:38:58: OverlayElementFactory for type TextArea registered.
+12:38:58: Registering ResourceManager for type Font
+12:38:58: ArchiveFactory for archive type FileSystem registered.
+12:38:58: ArchiveFactory for archive type Zip registered.
+12:38:58: FreeImage version: 3.9.2
+12:38:58: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
+12:38:58: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
+12:38:58: DDS codec registering
+12:38:58: Registering ResourceManager for type HighLevelGpuProgram
+12:38:58: Registering ResourceManager for type Compositor
+12:38:58: MovableObjectFactory for type 'Entity' registered.
+12:38:58: MovableObjectFactory for type 'Light' registered.
+12:38:58: MovableObjectFactory for type 'BillboardSet' registered.
+12:38:58: MovableObjectFactory for type 'ManualObject' registered.
+12:38:58: MovableObjectFactory for type 'BillboardChain' registered.
+12:38:58: MovableObjectFactory for type 'RibbonTrail' registered.
+12:38:58: Loading library .\RenderSystem_Direct3D9
+12:38:58: Installing plugin: D3D9 RenderSystem
+12:38:58: D3D9 : Direct3D9 Rendering Subsystem created.
+12:38:58: D3D9: Driver Detection Starts
+12:38:58: D3D9: Driver Detection Ends
+12:38:58: Plugin successfully installed
+12:38:58: Loading library .\RenderSystem_GL
+12:38:58: Installing plugin: GL RenderSystem
+12:38:58: OpenGL Rendering Subsystem created.
+12:38:58: Plugin successfully installed
+12:38:58: Loading library .\Plugin_ParticleFX
+12:38:58: Installing plugin: ParticleFX
+12:38:58: Particle Emitter Type 'Point' registered
+12:38:58: Particle Emitter Type 'Box' registered
+12:38:58: Particle Emitter Type 'Ellipsoid' registered
+12:38:58: Particle Emitter Type 'Cylinder' registered
+12:38:58: Particle Emitter Type 'Ring' registered
+12:38:58: Particle Emitter Type 'HollowEllipsoid' registered
+12:38:58: Particle Affector Type 'LinearForce' registered
+12:38:58: Particle Affector Type 'ColourFader' registered
+12:38:58: Particle Affector Type 'ColourFader2' registered
+12:38:58: Particle Affector Type 'ColourImage' registered
+12:38:58: Particle Affector Type 'ColourInterpolator' registered
+12:38:58: Particle Affector Type 'Scaler' registered
+12:38:58: Particle Affector Type 'Rotator' registered
+12:38:58: Particle Affector Type 'DirectionRandomiser' registered
+12:38:58: Particle Affector Type 'DeflectorPlane' registered
+12:38:58: Plugin successfully installed
+12:38:58: Loading library .\Plugin_BSPSceneManager
+12:38:58: Installing plugin: BSP Scene Manager
+12:38:58: Plugin successfully installed
+12:38:58: Loading library .\Plugin_OctreeSceneManager
+12:38:58: Installing plugin: Octree & Terrain Scene Manager
+12:38:58: Plugin successfully installed
+12:38:58: Loading library .\Plugin_CgProgramManager
+12:38:58: Installing plugin: Cg Program Manager
+12:38:58: Plugin successfully installed
+12:38:58: *-*-* OGRE Initialising
+12:38:58: *-*-* Version 1.4.5 (Eihort)
+12:38:58: Creating resource group Bootstrap
+12:38:58: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
+12:38:58: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
+12:38:58: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
+12:38:58: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
+12:38:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
+12:38:58: D3D9 : RenderSystem Option: Anti aliasing = Level 6
+12:38:58: D3D9 : RenderSystem Option: Floating-point mode = Consistent
+12:38:58: D3D9 : RenderSystem Option: Full Screen = Yes
+12:38:58: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
+12:38:58: D3D9 : RenderSystem Option: VSync = Yes
+12:38:58: D3D9 : RenderSystem Option: Video Mode = 1400 x 1050 @ 32-bit colour
+12:38:58: CPU Identifier & Features
+12:38:58: -------------------------
+12:38:58:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
+12:38:58:  *      SSE: yes
+12:38:58:  *     SSE2: yes
+12:38:58:  *     SSE3: yes
+12:38:58:  *      MMX: yes
+12:38:58:  *   MMXEXT: yes
+12:38:58:  *    3DNOW: no
+12:38:58:  * 3DNOWEXT: no
+12:38:58:  *     CMOV: yes
+12:38:58:  *      TSC: yes
+12:38:58:  *      FPU: yes
+12:38:58:  *      PRO: yes
+12:38:58:  *       HT: no
+12:38:58: -------------------------
+12:38:58: D3D9 : Subsystem Initialising
+12:38:58: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1400x1050 fullscreen  miscParams: FSAA=6 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true 
+12:38:58: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1400x1050, 32bpp
+12:38:58: Registering ResourceManager for type Texture
+12:38:58: Registering ResourceManager for type GpuProgram
+12:38:58: RenderSystem capabilities
+12:38:58: -------------------------
+12:38:58:  * Hardware generation of mipmaps: yes
+12:38:58:  * Texture blending: yes
+12:38:58:  * Anisotropic texture filtering: yes
+12:38:58:  * Dot product texture operation: yes
+12:38:58:  * Cube mapping: yes
+12:38:58:  * Hardware stencil buffer: yes
+12:38:58:    - Stencil depth: 8
+12:38:58:    - Two sided stencil support: yes
+12:38:58:    - Wrap stencil values: yes
+12:38:58:  * Hardware vertex / index buffers: yes
+12:38:58:  * Vertex programs: yes
+12:38:58:    - Max vertex program version: vs_3_0
+12:38:58:  * Fragment programs: yes
+12:38:58:    - Max fragment program version: ps_3_0
+12:38:58:  * Texture Compression: yes
+12:38:58:    - DXT: yes
+12:38:58:    - VTC: no
+12:38:58:  * Scissor Rectangle: yes
+12:38:58:  * Hardware Occlusion Query: yes
+12:38:58:  * User clip planes: yes
+12:38:58:  * VET_UBYTE4 vertex element type: yes
+12:38:58:  * Infinite far plane projection: yes
+12:38:58:  * Hardware render-to-texture: yes
+12:38:58:  * Floating point textures: yes
+12:38:58:  * Non-power-of-two textures: yes (limited)
+12:38:58:  * Volume textures: yes
+12:38:58:  * Multiple Render Targets: 4
+12:38:58:  * Point Sprites: yes
+12:38:58:  * Extended point parameters: yes
+12:38:58:  * Max Point Size: 256
+12:38:58:  * Vertex texture fetch: no
+12:38:58: ***************************************
+12:38:58: *** D3D9 : Subsystem Initialised OK ***
+12:38:58: ***************************************
+12:38:58: ResourceBackgroundQueue - threading disabled
+12:38:58: Particle Renderer Type 'billboard' registered
+12:38:58: SceneManagerFactory for type 'BspSceneManager' registered.
+12:38:58: Registering ResourceManager for type BspLevel
+12:38:58: SceneManagerFactory for type 'OctreeSceneManager' registered.
+12:38:58: SceneManagerFactory for type 'TerrainSceneManager' registered.
+12:38:58: Parsing scripts for resource group Autodetect
+12:38:58: Finished parsing scripts for resource group Autodetect
+12:38:58: Parsing scripts for resource group Bootstrap
+12:38:58: Parsing script OgreCore.material
+12:38:58: Parsing script OgreProfiler.material
+12:38:58: Parsing script Ogre.fontdef
+12:38:58: Parsing script OgreDebugPanel.overlay
+12:38:58: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
+12:38:58: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
+12:38:58: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
+12:38:58: Font BlueHighwayusing texture size 512x512
+12:38:58: Info: Freetype returned null for character 127 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 128 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 129 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 130 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 131 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 132 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 133 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 134 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 135 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 136 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 137 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 138 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 139 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 140 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 141 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 142 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 143 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 144 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 145 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 146 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 147 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 148 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 149 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 150 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 151 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 152 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 153 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 154 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 155 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 156 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 157 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 158 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 159 in font BlueHighway
+12:38:58: Info: Freetype returned null for character 160 in font BlueHighway
+12:38:58: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
+12:38:58: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
+12:38:58: Parsing script OgreLoadingPanel.overlay
+12:38:58: Finished parsing scripts for resource group Bootstrap
+12:38:58: Parsing scripts for resource group General
+12:38:58: Parsing script Examples.program
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: Parsing script Example.material
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: Parsing script Example.material
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
-OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
-23:01:46: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
-23:01:46: Parsing script Ogre.material
-23:01:46: Parsing script Examples.compositor
-23:01:46: Parsing script sample.fontdef
-23:01:46: Finished parsing scripts for resource group General
-23:01:46: Parsing scripts for resource group Internal
-23:01:46: Finished parsing scripts for resource group Internal
-23:01:46: Mesh: Loading ogrehead.mesh.
-23:01:46: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:01:46: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:01:46: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:01:46: D3D9 : ***** Dimensions altered by the render system
-23:01:46: D3D9 : ***** Source image dimensions : 96x96
-23:01:46: D3D9 : ***** Texture dimensions : 128x128
-23:01:46: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
-23:01:46: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
-23:01:46: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:01:46: Mesh: Loading fish.mesh.
-23:01:46: Skeleton: Loading fish.skeleton
-23:01:46: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
-23:01:46: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
-23:01:46: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
-23:01:46: *** Initializing OIS ***
-23:02:42: Unregistering ResourceManager for type BspLevel
-23:02:42: *-*-* OGRE Shutdown
-23:02:42: Unregistering ResourceManager for type Compositor
-23:02:42: Unregistering ResourceManager for type Font
-23:02:42: Unregistering ResourceManager for type Skeleton
-23:02:42: Unregistering ResourceManager for type Mesh
-23:02:42: Unregistering ResourceManager for type HighLevelGpuProgram
-23:02:42: Uninstalling plugin: Cg Program Manager
-23:02:42: Plugin successfully uninstalled
-23:02:42: Unloading library .\Plugin_CgProgramManager
-23:02:42: Uninstalling plugin: Octree & Terrain Scene Manager
-23:02:42: Plugin successfully uninstalled
-23:02:42: Unloading library .\Plugin_OctreeSceneManager
-23:02:42: Uninstalling plugin: BSP Scene Manager
-23:02:42: Plugin successfully uninstalled
-23:02:42: Unloading library .\Plugin_BSPSceneManager
-23:02:42: Uninstalling plugin: ParticleFX
-23:02:42: Plugin successfully uninstalled
-23:02:42: Unloading library .\Plugin_ParticleFX
-23:02:42: Uninstalling plugin: GL RenderSystem
-23:02:42: *** Stopping Win32GL Subsystem ***
-23:02:42: Plugin successfully uninstalled
-23:02:42: Unloading library .\RenderSystem_GL
-23:02:42: Uninstalling plugin: D3D9 RenderSystem
-23:02:42: Render Target 'OGRE Render Window' Average FPS: 60.0056 Best FPS: 63.1787 Worst FPS: 2.32831e-007
-23:02:44: D3D9 : Shutting down cleanly.
-23:02:44: Unregistering ResourceManager for type Texture
-23:02:44: Unregistering ResourceManager for type GpuProgram
-23:02:44: D3D9 : Direct3D9 Rendering Subsystem destroyed.
-23:02:44: Plugin successfully uninstalled
-23:02:44: Unloading library .\RenderSystem_Direct3D9
-23:02:44: Unregistering ResourceManager for type Material
+12:38:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
+OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 604)
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
+12:38:58: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
+12:38:58: Parsing script Ogre.material
+12:38:59: Parsing script Examples.compositor
+12:38:59: Parsing script sample.fontdef
+12:38:59: Finished parsing scripts for resource group General
+12:38:59: Parsing scripts for resource group Internal
+12:38:59: Finished parsing scripts for resource group Internal
+12:38:59: Mesh: Loading ogrehead.mesh.
+12:38:59: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+12:38:59: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+12:38:59: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+12:38:59: D3D9 : ***** Dimensions altered by the render system
+12:38:59: D3D9 : ***** Source image dimensions : 96x96
+12:38:59: D3D9 : ***** Texture dimensions : 128x128
+12:38:59: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
+12:38:59: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
+12:38:59: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+12:38:59: Mesh: Loading fish.mesh.
+12:38:59: Skeleton: Loading fish.skeleton
+12:38:59: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+12:38:59: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
+12:38:59: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
+12:38:59: *** Initializing OIS ***
+12:39:00: Unregistering ResourceManager for type BspLevel
+12:39:00: *-*-* OGRE Shutdown
+12:39:00: Unregistering ResourceManager for type Compositor
+12:39:00: Unregistering ResourceManager for type Font
+12:39:00: Unregistering ResourceManager for type Skeleton
+12:39:00: Unregistering ResourceManager for type Mesh
+12:39:00: Unregistering ResourceManager for type HighLevelGpuProgram
+12:39:00: Uninstalling plugin: Cg Program Manager
+12:39:00: Plugin successfully uninstalled
+12:39:00: Unloading library .\Plugin_CgProgramManager
+12:39:00: Uninstalling plugin: Octree & Terrain Scene Manager
+12:39:00: Plugin successfully uninstalled
+12:39:00: Unloading library .\Plugin_OctreeSceneManager
+12:39:00: Uninstalling plugin: BSP Scene Manager
+12:39:00: Plugin successfully uninstalled
+12:39:00: Unloading library .\Plugin_BSPSceneManager
+12:39:00: Uninstalling plugin: ParticleFX
+12:39:00: Plugin successfully uninstalled
+12:39:00: Unloading library .\Plugin_ParticleFX
+12:39:00: Uninstalling plugin: GL RenderSystem
+12:39:00: *** Stopping Win32GL Subsystem ***
+12:39:00: Plugin successfully uninstalled
+12:39:00: Unloading library .\RenderSystem_GL
+12:39:00: Uninstalling plugin: D3D9 RenderSystem
+12:39:00: Render Target 'OGRE Render Window' Average FPS: 2.32831e-007 Best FPS: 2.32831e-007 Worst FPS: 2.32831e-007
+12:39:02: D3D9 : Shutting down cleanly.
+12:39:02: Unregistering ResourceManager for type Texture
+12:39:02: Unregistering ResourceManager for type GpuProgram
+12:39:02: D3D9 : Direct3D9 Rendering Subsystem destroyed.
+12:39:02: Plugin successfully uninstalled
+12:39:02: Unloading library .\RenderSystem_Direct3D9
+12:39:02: Unregistering ResourceManager for type Material
Index: code/branches/main_reto_vs05/include/Bullet.h
===================================================================
--- code/branches/main_reto_vs05/include/Bullet.h	(revision 160)
+++ code/branches/main_reto_vs05/include/Bullet.h	(revision 161)
@@ -30,22 +30,29 @@
 #define BULLET_H
 
-#include "Ogre.h"
+#include "OgrePrerequisites.h"
 
-using namespace Ogre;
-
-class Bullet
-{
-public:
-	SceneNode *mNode;
-	Entity *mEntity;
-	Vector3 mSpeed;
-
-	Bullet(SceneNode*, Entity*, Vector3);
-	~Bullet();
-
-protected:
-
-};
+#include "Orxonox_prerequisites.h"
 
 
+namespace Orxonox {
+
+  class Bullet
+  {
+  public:
+    Ogre::SceneNode *mNode;
+	  Ogre::Entity *mEntity;
+	  Ogre::Vector3 mSpeed;
+
+  protected:
+
+  public:
+	  Bullet(Ogre::SceneNode*, Ogre::Entity*, Ogre::Vector3);
+	  ~Bullet();
+
+  protected:
+
+  };
+
+}
+
 #endif /* BULLET_H */
Index: code/branches/main_reto_vs05/include/Orxonox.h
===================================================================
--- code/branches/main_reto_vs05/include/Orxonox.h	(revision 160)
+++ code/branches/main_reto_vs05/include/Orxonox.h	(revision 161)
@@ -30,28 +30,30 @@
 #define ORXONOX_H
 
-#include "Ogre.h"
-#include "OgreTimer.h"
+#include "OgrePrerequisites.h"
 
-#include "ogre_control.h"
-#include "run_manager.h"
+#include "Orxonox_prerequisites.h"
 
-class Orxonox
-{
-public:
-  Orxonox();
-  virtual ~Orxonox();
-	virtual void go();
+namespace Orxonox {
 
-protected:
-	virtual bool setup(void);
+  class Orxonox
+  {
+  public:
+    Orxonox();
+    virtual ~Orxonox();
+	  virtual void go();
 
-	virtual void destroy(void);
+  protected:
+	  virtual bool setup(void);
 
-protected:
-	OgreControl *ogre_;
-	RunManager  *runMgr_;
-	Timer       *timer_;
+	  virtual void destroy(void);
 
-};
+  protected:
+	  OgreControl *ogre_;
+	  RunManager  *runMgr_;
+	  Ogre::Timer *timer_;
+
+  };
+
+}
 
 #endif /* ORXONOX_H */
Index: code/branches/main_reto_vs05/include/ammunition_dump.h
===================================================================
--- code/branches/main_reto_vs05/include/ammunition_dump.h	(revision 161)
+++ code/branches/main_reto_vs05/include/ammunition_dump.h	(revision 161)
@@ -0,0 +1,53 @@
+/*
+ *   ORXONOX - the hottest 3D action shooter ever to exist
+ *
+ *
+ *   License notice:
+ *
+ *   This program is free software: you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation, either version 3 of the License, or
+ *   (at your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ *
+ *   Author:
+ *      Reto Grieder
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+
+#ifndef AmmunitionDump_H
+#define AmmunitionDump_H
+
+#include "OgrePrerequisites.h"
+
+#include "Orxonox_prerequisites.h"
+
+
+namespace Orxonox {
+
+  class AmmunitionDump
+  {
+  public:
+	  AmmunitionDump();
+	  ~AmmunitionDump();
+
+  protected:
+
+  protected:
+
+  };
+
+}
+
+#endif /* AmmunitionDump_H */
Index: code/branches/main_reto_vs05/include/camera_manager.h
===================================================================
--- code/branches/main_reto_vs05/include/camera_manager.h	(revision 160)
+++ code/branches/main_reto_vs05/include/camera_manager.h	(revision 161)
@@ -30,21 +30,25 @@
 #define CAMERA_MANAGER_H
 
-#include "Ogre.h"
+#include "OgrePrerequisites.h"
 
-using namespace Ogre;
-
-class CameraManager
-{
-public:
-	CameraManager(SceneManager*);
-	~CameraManager();
-
-	bool setCameraPosition(int);
-
-protected:
-	SceneManager *mSceneMgr;
-	Camera *mCamera;
-};
+#include "Orxonox_prerequisites.h"
 
 
+namespace Orxonox {
+
+  class CameraManager
+  {
+  public:
+    CameraManager(Ogre::SceneManager*);
+	  ~CameraManager();
+
+	  bool setCameraPosition(int);
+
+  protected:
+	  Ogre::SceneManager *mSceneMgr;
+	  Ogre::Camera *mCamera;
+  };
+
+}
+
 #endif /* CAMERA_MANAGER_H */
Index: code/branches/main_reto_vs05/include/ogre_control.h
===================================================================
--- code/branches/main_reto_vs05/include/ogre_control.h	(revision 160)
+++ code/branches/main_reto_vs05/include/ogre_control.h	(revision 161)
@@ -30,43 +30,42 @@
 #define OGRE_CONTROL_H
 
-#include "Ogre.h"
-#include "OgreConfigFile.h"
+#include "OgrePrerequisites.h"
+
+#include "Orxonox_prerequisites.h"
 
 
-#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
-#include <CoreFoundation/CoreFoundation.h>
-#endif
+namespace Orxonox {
 
-using namespace Ogre;
+  class OgreControl
+  {
+  public:
+	  OgreControl();
 
-class OgreControl
-{
-public:
-	OgreControl();
+	  virtual ~OgreControl();
 
-	virtual ~OgreControl();
+	  /** Sets up the application - returns false if the user chooses to abandon configuration. */
+	  virtual bool initialise();
 
-	/** Sets up the application - returns false if the user chooses to abandon configuration. */
-	virtual bool initialise();
+    virtual Ogre::Root* getRoot();
 
-	virtual Root* getRoot();
+	  virtual Ogre::RenderWindow* getRenderWindow();
 
-	virtual RenderWindow* getRenderWindow();
+	  virtual Ogre::String getResourcePath();
 
-	virtual Ogre::String getResourcePath();
+  protected:
+	  /** Configures the application - returns false if the user chooses to abandon configuration. */
+	  virtual bool configure(void);
 
-protected:
-	/** Configures the application - returns false if the user chooses to abandon configuration. */
-	virtual bool configure(void);
+	  /// Method which will define the source of resources (other than current folder)
+	  virtual void setupResources(void);
 
-	/// Method which will define the source of resources (other than current folder)
-	virtual void setupResources(void);
+  protected:
+	  Ogre::Root         *root_;
+	  Ogre::RenderWindow *window_;
+	  Ogre::String  resourcePath_;
 
-protected:
-	Root         *root_;
-	RenderWindow *window_;
-	Ogre::String  resourcePath_;
+  };
 
-};
+}
 
 #endif /* OGRE_CONTROL_H */
Index: code/branches/main_reto_vs05/include/orxonox_prerequisites.h
===================================================================
--- code/branches/main_reto_vs05/include/orxonox_prerequisites.h	(revision 161)
+++ code/branches/main_reto_vs05/include/orxonox_prerequisites.h	(revision 161)
@@ -0,0 +1,46 @@
+/*
+ *   ORXONOX - the hottest 3D action shooter ever to exist
+ *
+ *
+ *   License notice:
+ *
+ *   This program is free software: you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation, either version 3 of the License, or
+ *   (at your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ *
+ *   Author:
+ *      Reto Grieder
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+
+#ifndef ORXONOX_PREREQUISITES_H
+#define ORXONOX_PREREQUISITES_H
+
+namespace Orxonox {
+
+  class AmmunitionDump;
+  class Bullet;
+  class CameraManager;
+  class OgreControl;
+  class Orxonox;
+  class OrxonoxShip;
+  class OrxonoxScene;
+  class RunManager;
+  class WeaponManager;
+
+}
+
+#endif /* ORXONOX_PREREQUISITES_H */
Index: code/branches/main_reto_vs05/include/orxonox_scene.h
===================================================================
--- code/branches/main_reto_vs05/include/orxonox_scene.h	(revision 160)
+++ code/branches/main_reto_vs05/include/orxonox_scene.h	(revision 161)
@@ -30,36 +30,41 @@
 #define ORXONOX_SCENE_H
 
-#include "Ogre.h"
+#include "OgrePrerequisites.h"
 
-using namespace Ogre;
+#include "Orxonox_prerequisites.h"
 
-class OrxonoxScene
-{
-public:
-	OrxonoxScene(SceneManager*);
 
-	virtual ~OrxonoxScene();
+namespace Orxonox {
 
-	virtual bool initialise();
+  class OrxonoxScene
+  {
+  public:
+    OrxonoxScene(Ogre::SceneManager*);
 
-	virtual bool tick(unsigned long, Real);
+	  virtual ~OrxonoxScene();
 
-protected:
-	/// method where you can perform resource group loading
-	virtual void loadResources();
+	  virtual bool initialise();
 
-	/// Define what is in the scene
-	virtual void createScene();
+	  virtual bool tick(unsigned long, Ogre::Real);
 
-protected:
-	SceneManager* sceneMgr_;
+  protected:
+	  /// method where you can perform resource group loading
+	  virtual void loadResources();
 
-	//specific variables for test purposes
-	Light        *light_;
-	SceneNode    *lightNode_;
-	BillboardSet *bbs_;
-	Real distance_;
-  Real radius_;
-};
+	  /// Define what is in the scene
+	  virtual void createScene();
+
+  protected:
+	  Ogre::SceneManager* sceneMgr_;
+
+	  //specific variables for test purposes
+	  Ogre::Light        *light_;
+	  Ogre::SceneNode    *lightNode_;
+	  Ogre::BillboardSet *bbs_;
+	  Ogre::Real distance_;
+    Ogre::Real radius_;
+  };
+
+}
 
 #endif /* ORXONOX_SCENE_H */
Index: code/branches/main_reto_vs05/include/orxonox_ship.h
===================================================================
--- code/branches/main_reto_vs05/include/orxonox_ship.h	(revision 160)
+++ code/branches/main_reto_vs05/include/orxonox_ship.h	(revision 161)
@@ -30,46 +30,48 @@
 #define ORXONOX_SHIP_H
 
-#include "Ogre.h"
+#include "OgrePrerequisites.h"
 
-#include "bullet.h"
-
-using namespace Ogre;
-
-class OrxonoxShip
-{
-public:
-	OrxonoxShip(SceneManager*, SceneNode*);
-	virtual ~OrxonoxShip();
-
-	virtual bool initialise();
-
-	void setMainThrust(const Real);
-	void setSideThrust(const Real);
-  void setYThrust(const Real);
-	void turnUpAndDown(const Radian&);
-	void turnLeftAndRight(const Radian&);
-
-  SceneNode* getRootNode();
-  Vector3 getSpeed();
-
-	Bullet* fire();
-
-	bool tick(unsigned long, Real);
-
-protected:
-
-protected:
-	SceneManager *sceneMgr_;
-	SceneNode *rootNode_;
-	Entity *shipEntity_;
-
-	Vector3 currentSpeed_;  // relative to space
-	Vector3 currentThrust_; // relative to the ship
-  Real baseThrust_;
-	int objectCounter_;
-	Vector3 bulletSpeed_;
-
-};
+#include "Orxonox_prerequisites.h"
 
 
+namespace Orxonox {
+
+  class OrxonoxShip
+  {
+  public:
+	  OrxonoxShip(Ogre::SceneManager*, Ogre::SceneNode*);
+	  virtual ~OrxonoxShip();
+
+	  virtual bool initialise();
+
+	  void setMainThrust(const Ogre::Real);
+	  void setSideThrust(const Ogre::Real);
+    void setYThrust(const Ogre::Real);
+	  void turnUpAndDown(const Ogre::Radian&);
+	  void turnLeftAndRight(const Ogre::Radian&);
+
+    Ogre::SceneNode* getRootNode();
+    Ogre::Vector3 getSpeed();
+
+	  Bullet* fire();
+
+	  bool tick(unsigned long, Ogre::Real);
+
+  protected:
+
+  protected:
+	  Ogre::SceneManager *sceneMgr_;
+	  Ogre::SceneNode *rootNode_;
+	  Ogre::Entity *shipEntity_;
+
+	  Ogre::Vector3 currentSpeed_;  // relative to space
+	  Ogre::Vector3 currentThrust_; // relative to the ship
+    Ogre::Real baseThrust_;
+	  int objectCounter_;
+	  Ogre::Vector3 bulletSpeed_;
+
+  };
+
+}
+
 #endif /* ORXONOX_SHIP_H */
Index: code/branches/main_reto_vs05/include/run_manager.h
===================================================================
--- code/branches/main_reto_vs05/include/run_manager.h	(revision 160)
+++ code/branches/main_reto_vs05/include/run_manager.h	(revision 161)
@@ -30,97 +30,93 @@
 #define RUN_MANAGER_H
 
-#include "Ogre.h"
-#include "OgreStringConverter.h"
-#include "OgreException.h"
+#include "OgrePrerequisites.h"
+#include "OgreWindowEventUtilities.h"
+#include "OgreTextureManager.h"
 
-#include "ogre_control.h"
-#include "orxonox_scene.h"
-#include "orxonox_ship.h"
+#include <OIS/OISPrereqs.h>
+
+#include "Orxonox_prerequisites.h"
 
 
-//Use this define to signify OIS will be used as a DLL
-//(so that dll import/export macros are in effect)
-#define OIS_DYNAMIC_LIB
-#include <OIS/OIS.h>
+namespace Orxonox {
 
-using namespace Ogre;
+  // let the class inherit from WindowEventListener in order for the RunMgr
+  // to act as the central point of all the calcuations in Orxonox
+  class RunManager : Ogre::WindowEventListener
+  {
+  public:
+	  RunManager(OgreControl*);
+
+	  virtual ~RunManager();
+
+    virtual bool tick(unsigned long, Ogre::Real);
+
+  protected:
+	  virtual void createCamera(void);
+
+	  virtual void createViewports(void);
 
 
-// let the class inherit from WindowEventListener in order for the RunMgr
-// to act as the central point of all the calcuations in Orxonox
-class RunManager : WindowEventListener
-{
-public:
-	RunManager(OgreControl*);
+	  /** EVENT HANDLING **/
 
-	virtual ~RunManager();
+	  //Adjust mouse clipping area
+	  virtual void windowResized(Ogre::RenderWindow*);
 
-	virtual bool tick(unsigned long, Real);
-
-protected:
-	virtual void createCamera(void);
-
-	virtual void createViewports(void);
+	  //Unattach OIS before window shutdown (very important under Linux)
+	  virtual void windowClosed(Ogre::RenderWindow*);
 
 
-	/** EVENT HANDLING **/
+	  /** INPUT PROCESSING **/
+	  virtual bool processUnbufferedKeyInput();
 
-	//Adjust mouse clipping area
-	virtual void windowResized(RenderWindow*);
-
-	//Unattach OIS before window shutdown (very important under Linux)
-	virtual void windowClosed(RenderWindow*);
+	  virtual bool processUnbufferedMouseInput();
 
 
-	/** INPUT PROCESSING **/
-	virtual bool processUnbufferedKeyInput();
+	  /** OUTPUT **/
 
-	virtual bool processUnbufferedMouseInput();
+	  virtual void updateStats(void);
 
+	  virtual void showDebugOverlay(bool);
 
-	/** OUTPUT **/
+  protected:
+	  Ogre::SceneManager *sceneMgr_;
+	  Ogre::RenderWindow *window_;
+	  Ogre::Camera       *camera_;
+	  OgreControl  *ogre_;
+	  OrxonoxScene *backgroundScene_;
+	  OrxonoxShip  *playerShip_;
 
-	virtual void updateStats(void);
+	  bool statsOn_;
+	  std::string debugText_;
 
-	virtual void showDebugOverlay(bool);
+	  unsigned int screenShotCounter_;
+	  // just to stop toggles flipping too fast
+	  Ogre::Real timeUntilNextToggle_;
+	  bool leftButtonDown_;
+	  Ogre::TextureFilterOptions filtering_;
+	  int aniso_;
 
-protected:
-	OgreControl  *ogre_;
-	SceneManager *sceneMgr_;
-	RenderWindow *window_;
-	OrxonoxScene *backgroundScene_;
-	Camera       *camera_;
-	OrxonoxShip  *playerShip_;
+	  int sceneDetailIndex_;
+	  Ogre::Overlay* debugOverlay_;
 
-	bool statsOn_;
-	std::string debugText_;
+	  //OIS Input devices
+	  OIS::InputManager* inputManager_;
+	  OIS::Mouse*    mouse_;
+	  OIS::Keyboard* keyboard_;
+	  OIS::JoyStick* joystick_;
 
-	unsigned int screenShotCounter_;
-	// just to stop toggles flipping too fast
-	Real timeUntilNextToggle_;
-	bool leftButtonDown_;
-	TextureFilterOptions filtering_;
-	int aniso_;
+    const Ogre::Real mouseSensitivity_;
 
-	int sceneDetailIndex_;
-	Overlay* debugOverlay_;
+    // Bullet array
+	  Bullet **bullets_;
+	  int bulletsSize_;
+	  int bulletsIndex_;
 
-	//OIS Input devices
-	OIS::InputManager* inputManager_;
-	OIS::Mouse*    mouse_;
-	OIS::Keyboard* keyboard_;
-	OIS::JoyStick* joystick_;
+	  // previously elapsed render time
+	  unsigned long totalTime_;
 
-  const Real mouseSensitivity_;
+  };
 
-  // Bullet array
-	Bullet **bullets_;
-	int bulletsSize_;
-	int bulletsIndex_;
-
-	// previously elapsed render time
-	unsigned long totalTime_;
-
-};
+}
 
 #endif /* RUN_MANAGER_H */
Index: code/branches/main_reto_vs05/include/weapon_manager.h
===================================================================
--- code/branches/main_reto_vs05/include/weapon_manager.h	(revision 160)
+++ code/branches/main_reto_vs05/include/weapon_manager.h	(revision 161)
@@ -30,18 +30,22 @@
 #define WEAPON_MANAGER_H
 
-#include "Ogre.h"
+#include "OgrePrerequisites.h"
 
-using namespace Ogre;
-
-class WeaponManager
-{
-public:
-	WeaponManager(SceneManager*);
-	virtual ~WeaponManager();
-
-protected:
-
-};
+#include "Orxonox_prerequisites.h"
 
 
+namespace Orxonox {
+
+  class WeaponManager
+  {
+  public:
+    WeaponManager(Ogre::SceneManager*);
+	  virtual ~WeaponManager();
+
+  protected:
+
+  };
+
+}
+
 #endif /* WEAPON_MANAGER_H */
Index: code/branches/main_reto_vs05/scripts/weapon_framework.vcproj
===================================================================
--- code/branches/main_reto_vs05/scripts/weapon_framework.vcproj	(revision 160)
+++ code/branches/main_reto_vs05/scripts/weapon_framework.vcproj	(revision 161)
@@ -184,4 +184,8 @@
 			>
 			<File
+				RelativePath="..\src\ammunition_dump.cc"
+				>
+			</File>
+			<File
 				RelativePath="..\src\bullet.cc"
 				>
@@ -226,4 +230,8 @@
 			>
 			<File
+				RelativePath="..\include\ammunition_dump.h"
+				>
+			</File>
+			<File
 				RelativePath="..\include\bullet.h"
 				>
@@ -239,4 +247,8 @@
 			<File
 				RelativePath="..\include\orxonox.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\orxonox_prerequisites.h"
 				>
 			</File>
Index: code/branches/main_reto_vs05/src/ammunition_dump.cc
===================================================================
--- code/branches/main_reto_vs05/src/ammunition_dump.cc	(revision 161)
+++ code/branches/main_reto_vs05/src/ammunition_dump.cc	(revision 161)
@@ -0,0 +1,42 @@
+/*
+ *   ORXONOX - the hottest 3D action shooter ever to exist
+ *
+ *
+ *   License notice:
+ *
+ *   This program is free software: you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation, either version 3 of the License, or
+ *   (at your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ *
+ *   Author:
+ *      Reto Grieder
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+#include "ammunition_dump.h"
+
+
+namespace Orxonox {
+
+  AmmunitionDump::AmmunitionDump()
+  {
+  }
+
+
+  AmmunitionDump::~AmmunitionDump()
+  {
+  }
+
+}
Index: code/branches/main_reto_vs05/src/bullet.cc
===================================================================
--- code/branches/main_reto_vs05/src/bullet.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/bullet.cc	(revision 161)
@@ -26,15 +26,24 @@
  */
 
+#include "OgreSceneNode.h"
+#include "OgreEntity.h"
+#include "OgreVector3.h"
+
 #include "bullet.h"
 
 
-Bullet::Bullet(SceneNode *mNode, Entity *mEntity, Vector3 mSpeed)
-      : mNode(mNode), mEntity(mEntity), mSpeed(mSpeed)
-{
-	mNode->attachObject(mEntity);
-}
+namespace Orxonox {
+  using namespace Ogre;
+
+  Bullet::Bullet(SceneNode *mNode, Entity *mEntity, Vector3 mSpeed)
+        : mNode(mNode), mEntity(mEntity), mSpeed(mSpeed)
+  {
+	  mNode->attachObject(mEntity);
+  }
 
 
-Bullet::~Bullet()
-{
+  Bullet::~Bullet()
+  {
+  }
+
 }
Index: code/branches/main_reto_vs05/src/camera_manager.cc
===================================================================
--- code/branches/main_reto_vs05/src/camera_manager.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/camera_manager.cc	(revision 161)
@@ -26,19 +26,26 @@
  */
 
+#include "OgreSceneManager.h"
+#include "OgreCamera.h"
+
 #include "camera_manager.h"
 
+namespace Orxonox {
+  using namespace Ogre;
 
-CameraManager::CameraManager(SceneManager *mScene) : mSceneMgr(mSceneMgr)
-{
-}
+  CameraManager::CameraManager(SceneManager *mScene) : mSceneMgr(mSceneMgr)
+  {
+  }
 
 
-CameraManager::~CameraManager()
-{
-}
+  CameraManager::~CameraManager()
+  {
+  }
 
 
-bool CameraManager::setCameraPosition(int n)
-{
-	return true;
+  bool CameraManager::setCameraPosition(int n)
+  {
+	  return true;
+  }
+
 }
Index: code/branches/main_reto_vs05/src/main.cc
===================================================================
--- code/branches/main_reto_vs05/src/main.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/main.cc	(revision 161)
@@ -26,5 +26,6 @@
  */
 
-
+#include "OgrePlatform.h"
+#include "OgreException.h"
 
 #include "orxonox.h"
@@ -44,5 +45,5 @@
     try {
       // create an orxonox aplication and run it
-      Orxonox myApp;
+      Orxonox::Orxonox myApp;
 
       myApp.go();
Index: code/branches/main_reto_vs05/src/ogre_control.cc
===================================================================
--- code/branches/main_reto_vs05/src/ogre_control.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/ogre_control.cc	(revision 161)
@@ -26,183 +26,198 @@
  */
 
-/**
-* Ogre control class.
-* This is merely a convenient way to handle Ogre. It only holds the Root
-* object and the render Window. These are the objects, that are independant
-* of the game state (playing, menu browsing, loading, etc.).
-* This class could easily be merged into the Orxnox class.
-*/
-
+#include "OgrePlatform.h"
+#include "OgreRoot.h"
+#include "OgreRenderWindow.h"
+#include "OgreString.h"
+#include "OgreConfigFile.h"
+
+#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
+  #include <CoreFoundation/CoreFoundation.h>
+#endif
 
 #include "ogre_control.h"
 
 
-/**
-* Provide support for mac users.
-*/
-#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
-// This function will locate the path to our application on OS X,
-// unlike windows you can not rely on the curent working directory
-// for locating your configuration files and resources.
-std::string macBundlePath()
-{
-	char path[1024];
-	CFBundleRef mainBundle = CFBundleGetMainBundle();
-	assert(mainBundle);
-
-	CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle);
-	assert(mainBundleURL);
-
-	CFStringRef cfStringRef =
-        CFURLCopyFileSystemPath( mainBundleURL, kCFURLPOSIXPathStyle);
-	assert(cfStringRef);
-
-	CFStringGetCString(cfStringRef, path, 1024, kCFStringEncodingASCII);
-
-	CFRelease(mainBundleURL);
-	CFRelease(cfStringRef);
-
-	return std::string(path);
+namespace Orxonox {
+  using namespace Ogre;
+
+  /**
+  * Ogre control class.
+  * This is merely a convenient way to handle Ogre. It only holds the Root
+  * object and the render Window. These are the objects, that are independant
+  * of the game state (playing, menu browsing, loading, etc.).
+  * This class could easily be merged into the Orxnox class.
+  */
+
+
+  /**
+  * Provide support for mac users.
+  */
+  #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
+  // This function will locate the path to our application on OS X,
+  // unlike windows you can not rely on the curent working directory
+  // for locating your configuration files and resources.
+  std::string macBundlePath()
+  {
+	  char path[1024];
+	  CFBundleRef mainBundle = CFBundleGetMainBundle();
+	  assert(mainBundle);
+
+	  CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle);
+	  assert(mainBundleURL);
+
+	  CFStringRef cfStringRef =
+          CFURLCopyFileSystemPath( mainBundleURL, kCFURLPOSIXPathStyle);
+	  assert(cfStringRef);
+
+	  CFStringGetCString(cfStringRef, path, 1024, kCFStringEncodingASCII);
+
+	  CFRelease(mainBundleURL);
+	  CFRelease(cfStringRef);
+
+	  return std::string(path);
+  }
+  #endif
+
+
+  /**
+  * Constructor that determines the resource path platform dependant.
+  */
+  OgreControl::OgreControl() : root_(0)
+  {
+	  // Provide a nice cross platform solution for locating the configuration
+	  // files. On windows files are searched for in the current working
+    // directory, on OS X however you must provide the full path, the helper
+    // function macBundlePath does this for us.
+  #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
+	  resourcePath_ = macBundlePath() + "/Contents/Resources/";
+  #else
+	  resourcePath_ = "";
+  #endif
+  }
+
+
+  /**
+  * Standard Destructor.
+  */
+  OgreControl::~OgreControl()
+  {
+	  if (root_)
+		  delete root_;
+  }
+
+
+  /* Sets up Ogre.
+  * First, the Root object is being created, then the resources are defined
+  * (not loaded!). And last but not least, the render settings (like resolution
+  * or AA level) are prompted to the user.
+  */
+  bool OgreControl::initialise(void)
+  {
+	  String pluginsPath;
+	  // only use plugins.cfg if not static
+  #ifndef OGRE_STATIC_LIB
+	  pluginsPath = resourcePath_ + "plugins.cfg";
+  #endif
+
+	  root_ = new Root(pluginsPath, 
+		  resourcePath_ + "ogre.cfg", resourcePath_ + "Ogre.log");
+
+	  setupResources();
+
+	  if (!configure())
+		  return false;
+
+	  return true;
+  }
+
+
+  /**
+  * Defines the source of the resources.
+  */
+  void OgreControl::setupResources(void)
+  {
+	  // Load resource paths from config file
+	  ConfigFile cf;
+	  cf.load(resourcePath_ + "resources.cfg");
+
+	  // Go through all sections & settings in the file
+	  ConfigFile::SectionIterator seci = cf.getSectionIterator();
+
+	  String secName, typeName, archName;
+	  while (seci.hasMoreElements())
+	  {
+		  secName = seci.peekNextKey();
+		  ConfigFile::SettingsMultiMap *settings = seci.getNext();
+		  ConfigFile::SettingsMultiMap::iterator i;
+		  for (i = settings->begin(); i != settings->end(); ++i)
+		  {
+			  typeName = i->first;
+			  archName = i->second;
+  #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
+			  // OS X does not set the working directory relative to the app,
+			  // In order to make things portable on OS X we need to provide
+			  // the loading with it's own bundle path location
+			  ResourceGroupManager::getSingleton().addResourceLocation(
+				  String(macBundlePath() + "/" + archName), typeName, secName);
+  #else
+			  ResourceGroupManager::getSingleton().addResourceLocation(
+				  archName, typeName, secName);
+  #endif
+		  }
+	  }
+  }
+
+
+  /**
+  * Prompts a setting window for the render engine if that has not already
+  * been done.
+  * The method also calls the root initialiser in order to get a render window.
+  */
+  bool OgreControl::configure(void)
+  {
+	  // Show the configuration dialog and initialise the system
+	  // You can skip this and use root.restoreConfig() to load configuration
+	  // settings if you were sure there are valid ones saved in ogre.cfg
+	  if(!root_->restoreConfig() && !root_->showConfigDialog())
+		  return false;
+
+	  // user clicked OK so initialise
+	  // Here we choose to let the system create a default
+    // rendering window by passing 'true'
+	  root_->saveConfig();
+	  window_ = root_->initialise(true);
+	  return true;
+  }
+
+
+  /**
+  * Returns the root object.
+  * @return Root object.
+  */
+  Root* OgreControl::getRoot(void)
+  {
+	  return root_;
+  }
+
+
+  /**
+  * Returns the render window.
+  * @return Render window.
+  */
+  RenderWindow* OgreControl::getRenderWindow(void)
+  {
+	  return window_;
+  }
+
+
+  /**
+  * Returns the resource path.
+  * @return Resource path.
+  */
+  Ogre::String OgreControl::getResourcePath(void)
+  {
+	  return resourcePath_;
+  }
+
 }
-#endif
-
-
-/**
-* Constructor that determines the resource path platform dependant.
-*/
-OgreControl::OgreControl() : root_(0)
-{
-	// Provide a nice cross platform solution for locating the configuration
-	// files. On windows files are searched for in the current working
-  // directory, on OS X however you must provide the full path, the helper
-  // function macBundlePath does this for us.
-#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
-	resourcePath_ = macBundlePath() + "/Contents/Resources/";
-#else
-	resourcePath_ = "";
-#endif
-}
-
-
-/**
-* Standard Destructor.
-*/
-OgreControl::~OgreControl()
-{
-	if (root_)
-		delete root_;
-}
-
-
-/* Sets up Ogre.
-* First, the Root object is being created, then the resources are defined
-* (not loaded!). And last but not least, the render settings (like resolution
-* or AA level) are prompted to the user.
-*/
-bool OgreControl::initialise(void)
-{
-	String pluginsPath;
-	// only use plugins.cfg if not static
-#ifndef OGRE_STATIC_LIB
-	pluginsPath = resourcePath_ + "plugins.cfg";
-#endif
-
-	root_ = new Root(pluginsPath, 
-		resourcePath_ + "ogre.cfg", resourcePath_ + "Ogre.log");
-
-	setupResources();
-
-	if (!configure())
-		return false;
-
-	return true;
-}
-
-
-/**
-* Defines the source of the resources.
-*/
-void OgreControl::setupResources(void)
-{
-	// Load resource paths from config file
-	ConfigFile cf;
-	cf.load(resourcePath_ + "resources.cfg");
-
-	// Go through all sections & settings in the file
-	ConfigFile::SectionIterator seci = cf.getSectionIterator();
-
-	String secName, typeName, archName;
-	while (seci.hasMoreElements())
-	{
-		secName = seci.peekNextKey();
-		ConfigFile::SettingsMultiMap *settings = seci.getNext();
-		ConfigFile::SettingsMultiMap::iterator i;
-		for (i = settings->begin(); i != settings->end(); ++i)
-		{
-			typeName = i->first;
-			archName = i->second;
-#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
-			// OS X does not set the working directory relative to the app,
-			// In order to make things portable on OS X we need to provide
-			// the loading with it's own bundle path location
-			ResourceGroupManager::getSingleton().addResourceLocation(
-				String(macBundlePath() + "/" + archName), typeName, secName);
-#else
-			ResourceGroupManager::getSingleton().addResourceLocation(
-				archName, typeName, secName);
-#endif
-		}
-	}
-}
-
-
-/**
-* Prompts a setting window for the render engine if that has not already
-* been done.
-* The method also calls the root initialiser in order to get a render window.
-*/
-bool OgreControl::configure(void)
-{
-	// Show the configuration dialog and initialise the system
-	// You can skip this and use root.restoreConfig() to load configuration
-	// settings if you were sure there are valid ones saved in ogre.cfg
-	if(!root_->restoreConfig() && !root_->showConfigDialog())
-		return false;
-
-	// user clicked OK so initialise
-	// Here we choose to let the system create a default
-  // rendering window by passing 'true'
-	root_->saveConfig();
-	window_ = root_->initialise(true);
-	return true;
-}
-
-
-/**
-* Returns the root object.
-* @return Root object.
-*/
-Root* OgreControl::getRoot(void)
-{
-	return root_;
-}
-
-
-/**
-* Returns the render window.
-* @return Render window.
-*/
-RenderWindow* OgreControl::getRenderWindow(void)
-{
-	return window_;
-}
-
-
-/**
-* Returns the resource path.
-* @return Resource path.
-*/
-Ogre::String OgreControl::getResourcePath(void)
-{
-	return resourcePath_;
-}
Index: code/branches/main_reto_vs05/src/orxonox.cc
===================================================================
--- code/branches/main_reto_vs05/src/orxonox.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/orxonox.cc	(revision 161)
@@ -32,80 +32,89 @@
 */
 
+#include "OgreRoot.h"
+#include "OgreTimer.h"
+#include "OgreWindowEventUtilities.h"
 
+#include "ogre_control.h"
+#include "run_manager.h"
 #include "orxonox.h"
 
 
-/**
-* Empty Constructor.
-*/
-Orxonox::Orxonox()
-{
-}
+namespace Orxonox {
+
+  /**
+  * Empty Constructor.
+  */
+  Orxonox::Orxonox()
+  {
+  }
 
 
-/**
-* Empty Destructor.
-*/
-Orxonox::~Orxonox()
-{
-}
+  /**
+  * Empty Destructor.
+  */
+  Orxonox::~Orxonox()
+  {
+  }
 
 
-/**
-* Starts and runs the game
-*/
-void Orxonox::go(void)
-{
-	if (!setup())
-		return;
+  /**
+  * Starts and runs the game
+  */
+  void Orxonox::go(void)
+  {
+	  if (!setup())
+		  return;
 
-	timer_ = new Timer();
+    timer_ = new Ogre::Timer();
 
-	unsigned long lastTime = timer_->getMilliseconds();
+	  unsigned long lastTime = timer_->getMilliseconds();
 
-	while (true)
-	{
-		//Pump messages in all registered RenderWindow windows
-		WindowEventUtilities::messagePump();
+	  while (true)
+	  {
+		  //Pump messages in all registered RenderWindow windows
+      Ogre::WindowEventUtilities::messagePump();
 
-		ogre_->getRoot()->renderOneFrame();
+		  ogre_->getRoot()->renderOneFrame();
 
-		if (!runMgr_->tick(timer_->getMilliseconds(),
-            (timer_->getMilliseconds() - lastTime) / 1000.0))
-			break;
-		lastTime = timer_->getMilliseconds();
-	}
+		  if (!runMgr_->tick(timer_->getMilliseconds(),
+              (timer_->getMilliseconds() - lastTime) / 1000.0))
+			  break;
+		  lastTime = timer_->getMilliseconds();
+	  }
 
-	// clean up
-	destroy();
-}
+	  // clean up
+	  destroy();
+  }
 
 
-/**
-* Create render engine, render window and the Run manager.
-* @return False if failed.
-*/
-bool Orxonox::setup(void)
-{
-	// create new 3D ogre render engine
-	ogre_ = new OgreControl();
-	ogre_->initialise();
+  /**
+  * Create render engine, render window and the Run manager.
+  * @return False if failed.
+  */
+  bool Orxonox::setup(void)
+  {
+	  // create new 3D ogre render engine
+	  ogre_ = new OgreControl();
+	  ogre_->initialise();
 
-	runMgr_ = new RunManager(ogre_);
+	  runMgr_ = new RunManager(ogre_);
 
-	return true;
-}
+	  return true;
+  }
 
 
-/**
-* Clean everything up.
-*/
-void Orxonox::destroy()
-{
-	if (timer_)
-		delete timer_;
-	if (runMgr_)
-		delete runMgr_;
-	if (ogre_)
-		delete ogre_;
+  /**
+  * Clean everything up.
+  */
+  void Orxonox::destroy()
+  {
+	  if (timer_)
+		  delete timer_;
+	  if (runMgr_)
+		  delete runMgr_;
+	  if (ogre_)
+		  delete ogre_;
+  }
+
 }
Index: code/branches/main_reto_vs05/src/orxonox_scene.cc
===================================================================
--- code/branches/main_reto_vs05/src/orxonox_scene.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/orxonox_scene.cc	(revision 161)
@@ -26,118 +26,130 @@
  */
 
-/**
-* The orxonox scene includes everything running in the background like terrain,
-* static figures, dangling lamp, etc.
-*/
-
+#include "OgreSceneManager.h"
+#include "OgreSceneNode.h"
+#include "OgreEntity.h"
+#include "OgreLight.h"
+#include "OgreBillboard.h"
+#include "OgreBillboardSet.h"
+#include "OgreVector3.h"
 
 #include "orxonox_scene.h"
 
+namespace Orxonox {
+  using namespace Ogre;
 
-/**
-* Empty Consructor except the initialiser list.
-* @param sceneMgr The Scene Manager.
-*/
-OrxonoxScene::OrxonoxScene(SceneManager *sceneMgr) : sceneMgr_(sceneMgr)
-{
-}
-
-/**
-* Empty Destructor.
-*/
-OrxonoxScene::~OrxonoxScene()
-{
-}
-
-/**
-* Ogre initialisation method.
-* This function is called by the Run Manager to load the neccessary recources
-* and to create the scene.
-* @return False if failed.
-*/
-bool OrxonoxScene::initialise()
-{
-	// Load resources
-	loadResources();
-
-	distance_ = 0;
-	radius_ = 100;
-
-	createScene();
-
-	return true;
-}
+  /**
+  * The orxonox scene includes everything running in the background like terrain,
+  * static figures, dangling lamp, etc.
+  */
 
 
-/**
-* Resource loader.
-* Currently, this method loads everything! TODO: If done this ugly, it should
-* at least be in the Run Manager.
-*/
-void OrxonoxScene::loadResources()
-{
-	// Initialise, parse scripts etc
-	ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
-}
+  /**
+  * Empty Consructor except the initialiser list.
+  * @param sceneMgr The Scene Manager.
+  */
+  OrxonoxScene::OrxonoxScene(SceneManager *sceneMgr) : sceneMgr_(sceneMgr)
+  {
+  }
+
+  /**
+  * Empty Destructor.
+  */
+  OrxonoxScene::~OrxonoxScene()
+  {
+  }
+
+  /**
+  * Ogre initialisation method.
+  * This function is called by the Run Manager to load the neccessary recources
+  * and to create the scene.
+  * @return False if failed.
+  */
+  bool OrxonoxScene::initialise()
+  {
+	  // Load resources
+	  loadResources();
+
+	  distance_ = 0;
+	  radius_ = 100;
+
+	  createScene();
+
+	  return true;
+  }
 
 
-/**
-* Scene creation.
-* Currently just a test scene with an ogre head an a surrounding light.
-*/
-void OrxonoxScene::createScene()
-{
-	sceneMgr_->setAmbientLight(ColourValue(0.3,0.3,0.3));
-
-	//create first entity
-	Entity *head = sceneMgr_->createEntity("head", "ogrehead.mesh");
-
-	//create a scene node to attach the head to
-	SceneNode *node = sceneMgr_->getRootSceneNode()
-        ->createChildSceneNode("OgreHeadNode", Vector3(0,0,0));
-	//attach the ogre head
-	node->attachObject(head);
-
-	// set up skybox
-	sceneMgr_->setSkyBox(true, "Examples/SceneSkyBox2");
-
-	// set up one light_ source
-	light_ = sceneMgr_->createLight("Light1");
-	light_->setType(Light::LT_POINT);
-	light_->setPosition(Vector3(0, 0, 0));
-	light_->setDiffuseColour(1.0, 1.0, 1.0);
-	light_->setSpecularColour(1.0, 1.0, 1.0);
-
-	//create billboard
-	bbs_ = sceneMgr_->createBillboardSet("bb", 1);
-	bbs_->createBillboard(Vector3::ZERO, ColourValue(1.0, 1.0, 1.0));
-	bbs_->setMaterialName("Examples/Flare");
-
-	lightNode_ = sceneMgr_->getRootSceneNode()
-        ->createChildSceneNode("lightNode_", Vector3(0, 100, 0));
-
-	lightNode_->attachObject(bbs_);
-	lightNode_->attachObject(light_);
-}
+  /**
+  * Resource loader.
+  * Currently, this method loads everything! TODO: If done this ugly, it should
+  * at least be in the Run Manager.
+  */
+  void OrxonoxScene::loadResources()
+  {
+	  // Initialise, parse scripts etc
+	  ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
+  }
 
 
-/**
-* Compute something between frames if neccessary.
-* @param time Absolute time.
-* @param deltaTime Relative time.
-* @return Return true to continue rendering.
-*/
-bool OrxonoxScene::tick(unsigned long time, Real deltaTime)
-{
-	Real t = time/1000.0;
+  /**
+  * Scene creation.
+  * Currently just a test scene with an ogre head an a surrounding light.
+  */
+  void OrxonoxScene::createScene()
+  {
+	  sceneMgr_->setAmbientLight(ColourValue(0.3,0.3,0.3));
 
-	lightNode_->setPosition(radius_*sin(5*t), radius_*cos(5*t), sin(1*t)*distance_);
-	
-	light_->setDiffuseColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2));
-	light_->setSpecularColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2));
+	  //create first entity
+	  Entity *head = sceneMgr_->createEntity("head", "ogrehead.mesh");
 
-	bbs_->getBillboard(0)->setColour(ColourValue(sin(1*t),
-        sin(1*t + 2.09), sin(1*t + 2.09*2)));
-  
-  return true;
+	  //create a scene node to attach the head to
+	  SceneNode *node = sceneMgr_->getRootSceneNode()
+          ->createChildSceneNode("OgreHeadNode", Vector3(0,0,0));
+	  //attach the ogre head
+	  node->attachObject(head);
+
+	  // set up skybox
+	  sceneMgr_->setSkyBox(true, "Examples/SceneSkyBox2");
+
+	  // set up one light_ source
+	  light_ = sceneMgr_->createLight("Light1");
+	  light_->setType(Light::LT_POINT);
+	  light_->setPosition(Vector3(0, 0, 0));
+	  light_->setDiffuseColour(1.0, 1.0, 1.0);
+	  light_->setSpecularColour(1.0, 1.0, 1.0);
+
+	  //create billboard
+	  bbs_ = sceneMgr_->createBillboardSet("bb", 1);
+	  bbs_->createBillboard(Vector3::ZERO, ColourValue(1.0, 1.0, 1.0));
+	  bbs_->setMaterialName("Examples/Flare");
+
+	  lightNode_ = sceneMgr_->getRootSceneNode()
+          ->createChildSceneNode("lightNode_", Vector3(0, 100, 0));
+
+	  lightNode_->attachObject(bbs_);
+	  lightNode_->attachObject(light_);
+  }
+
+
+  /**
+  * Compute something between frames if neccessary.
+  * @param time Absolute time.
+  * @param deltaTime Relative time.
+  * @return Return true to continue rendering.
+  */
+  bool OrxonoxScene::tick(unsigned long time, Real deltaTime)
+  {
+	  Real t = time/1000.0;
+
+	  lightNode_->setPosition(radius_*sin(5*t), radius_*cos(5*t), sin(1*t)*distance_);
+  	
+	  light_->setDiffuseColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2));
+	  light_->setSpecularColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2));
+
+	  bbs_->getBillboard(0)->setColour(ColourValue(sin(1*t),
+          sin(1*t + 2.09), sin(1*t + 2.09*2)));
+    
+    return true;
+  }
+
 }
Index: code/branches/main_reto_vs05/src/orxonox_ship.cc
===================================================================
--- code/branches/main_reto_vs05/src/orxonox_ship.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/orxonox_ship.cc	(revision 161)
@@ -26,184 +26,198 @@
  */
 
-/**
-* Base class for any kind of flyable ship in Orxonox.
-* 
-* The ship offers steering methods (like left, right, etc.) and translates
-* them into movement. A ship can also hold more than one weapons (where each
-* of these can be replaced during the game). This means that a ship can have
-* many WeaponManagers but only one MunitionManager (independant object that
-* is referenced in each WeaponManager).
-* Furthermore a ship in Orxonox is responsible for its visualization, which is
-* why it receives a pointer to the SceneManager.
-*/
-
+#include "OgreSceneManager.h"
+#include "OgreSceneNode.h"
+#include "OgreEntity.h"
+#include "OgreVector3.h"
+#include "OgreStringConverter.h"
+
+#include "bullet.h"
 
 #include "orxonox_ship.h"
 
-
-/**
-* Standard constructor, that only initalizes a few variables. Some of them
-* could be made static, since any new ship would be derived from the BaseShip.
-* Or even better: write config files for each ship so that manipulating
-* its properties would be even easier.
-* @param mSceneMgr The current main SceneManager
-* @param mNode The scene node which the ship will be attached to later.
-*/
-OrxonoxShip::OrxonoxShip(SceneManager *sceneMgr, SceneNode *node)
-	    : sceneMgr_(sceneMgr), rootNode_(node), currentSpeed_(Vector3(0, 0, 0)),
-      baseThrust_(1000), currentThrust_(Vector3::ZERO),
-      objectCounter_(0), bulletSpeed_(400)
-{
+namespace Orxonox {
+  using namespace Ogre;
+
+  /**
+  * Base class for any kind of flyable ship in Orxonox.
+  * 
+  * The ship offers steering methods (like left, right, etc.) and translates
+  * them into movement. A ship can also hold more than one weapons (where each
+  * of these can be replaced during the game). This means that a ship can have
+  * many WeaponManagers but only one MunitionManager (independant object that
+  * is referenced in each WeaponManager).
+  * Furthermore a ship in Orxonox is responsible for its visualization, which is
+  * why it receives a pointer to the SceneManager.
+  */
+
+
+
+
+  /**
+  * Standard constructor, that only initalizes a few variables. Some of them
+  * could be made static, since any new ship would be derived from the BaseShip.
+  * Or even better: write config files for each ship so that manipulating
+  * its properties would be even easier.
+  * @param mSceneMgr The current main SceneManager
+  * @param mNode The scene node which the ship will be attached to later.
+  */
+  OrxonoxShip::OrxonoxShip(SceneManager *sceneMgr, SceneNode *node)
+	      : sceneMgr_(sceneMgr), rootNode_(node), currentSpeed_(Vector3(0, 0, 0)),
+        baseThrust_(1000), currentThrust_(Vector3::ZERO),
+        objectCounter_(0), bulletSpeed_(400)
+  {
+  }
+
+
+  /**
+  * Standard destructor.
+  * Doesn't have any work to do yet.
+  */
+  OrxonoxShip::~OrxonoxShip()
+  {
+  }
+
+
+  /**
+  * Initialises everything.
+  * Once that ResourceGroups are organised, this method loads them.
+  * It might be an idea to make this function static in order for the
+  * SceneManger to call the initialise method of every needed class (macros..)
+  * @return Returns false when failed.
+  */
+  bool OrxonoxShip::initialise()
+  {
+	  // load all the resources needed (no resource groups yet,
+    // so the allInit is not executed!)
+	  // ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
+
+	  // create the "space ship" (currently a fish..)
+	  // TODO: names must be unique! use static variables..
+	  shipEntity_ = sceneMgr_->createEntity("Ship", "fish.mesh");
+	  SceneNode *fishNode = rootNode_->createChildSceneNode("fishNode");
+	  fishNode->yaw(Degree(-90));
+	  fishNode->attachObject(shipEntity_);
+	  fishNode->setScale(Vector3(10, 10, 10));
+
+	  return true;
+  }
+
+
+  /**
+  * Gets the ship to accelerate in the current direction.
+  * The value should be between 0 and 1, with one beeing full thrust and 0 none.
+  * @param value Acceleration between 0 and 1
+  */
+  void OrxonoxShip::setMainThrust(const Real value)
+  {
+	  //currentThrust_ = value * baseThrust_;
+    currentThrust_.z = value * baseThrust_;
+  }
+
+
+  /**
+  * Gets the ship to accelerate sideways regarding the current direction.
+  * The value should be between 0 and 1, with one beeing full thrust and 0 none.
+  * @param value Acceleration between 0 and 1
+  */
+  void OrxonoxShip::setSideThrust(const Real value)
+  {
+	  //currentSideThrust_ = value * baseThrust_;
+    currentThrust_.x = value * baseThrust_;
+  }
+
+
+  /**
+  * Gets the ship to accelerate up and down.
+  * The value should be between 0 and 1, with one beeing full thrust and 0 none.
+  * @param value Acceleration between 0 and 1
+  */
+  void OrxonoxShip::setYThrust(const Real value)
+  {
+    //currentYThrust_ = value * baseThrust_;
+    currentThrust_.y = value * baseThrust_;
+  }
+
+
+  /**
+  * Rotate the ship along with the camera up and down.
+  * @param angle Pitch value.
+  */
+  void OrxonoxShip::turnUpAndDown(const Radian &angle)
+  {
+    rootNode_->pitch(-angle, Node::TS_LOCAL);
+  }
+
+
+  /**
+  * Rotate the ship along with the camera left and right.
+  * @param angle Yaw value.
+  */
+  void OrxonoxShip::turnLeftAndRight(const Radian &angle)
+  {
+    rootNode_->yaw(-angle, Node::TS_PARENT);
+  }
+
+
+  /**
+  * Returns the current speed of the ship according to its parent node.
+  * @return The current speed.
+  */
+  Vector3 OrxonoxShip::getSpeed()
+  {
+    return currentSpeed_;
+  }
+
+  /**
+  * Returns the ship's root SceneNode.
+  * @return The Root Node.
+  */
+  SceneNode* OrxonoxShip::getRootNode()
+  {
+    return rootNode_;
+  }
+
+
+  /**
+  * Fire a bullet (Entity with SceneNode).
+  * This method creates a new Entity plus a SceneNode. But be sure not make
+  * the new Node a child of RootNode_!
+  * @return Bullet containing speed and entity.
+  */
+  Bullet* OrxonoxShip::fire()
+  {
+	  // TODO: Names must be unique!
+	  SceneNode *temp = rootNode_->getParentSceneNode()->createChildSceneNode(
+          "BulletNode" + StringConverter::toString(objectCounter_));
+	  temp->setOrientation(rootNode_->getOrientation());
+	  temp->setPosition(rootNode_->getPosition());
+	  temp->setScale(Vector3(1, 1, 1) * 10);
+	  temp->yaw(Degree(-90));
+	  return new Bullet(temp, sceneMgr_->createEntity("bullet"
+          + StringConverter::toString(objectCounter_++), "Barrel.mesh"), currentSpeed_
+          + (rootNode_->getOrientation() * Vector3(0, 0, -1)).normalisedCopy()
+          * bulletSpeed_);
+  }
+
+
+  /**
+  * Standard tick() function.
+  * Currently, only the speed is applied according to the thrust values.
+  * @param time Absolute time.
+  * @param deltaTime Relative time.
+  * @return Return true to continue render
+  */
+  bool OrxonoxShip::tick(unsigned long time, Real deltaTime)
+  {
+    Quaternion quad = rootNode_->getOrientation();
+    quad.normalise();
+    currentSpeed_ += quad * (Vector3(-1, -1, -1) * currentThrust_) * deltaTime;
+    //currentSpeed_ += quad * Vector3(0, 0, -1) * currentThrust_ * deltaTime;
+	  //currentSpeed_ += quad * Vector3(-1, 0,  0) * currentSideThrust_ * deltaTime;
+
+	  rootNode_->translate(currentSpeed_ * deltaTime);
+
+	  return true;
+  }
+
 }
-
-
-/**
-* Standard destructor.
-* Doesn't have any work to do yet.
-*/
-OrxonoxShip::~OrxonoxShip()
-{
-}
-
-
-/**
-* Initialises everything.
-* Once that ResourceGroups are organised, this method loads them.
-* It might be an idea to make this function static in order for the
-* SceneManger to call the initialise method of every needed class (macros..)
-* @return Returns false when failed.
-*/
-bool OrxonoxShip::initialise()
-{
-	// load all the resources needed (no resource groups yet,
-  // so the allInit is not executed!)
-	// ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
-
-	// create the "space ship" (currently a fish..)
-	// TODO: names must be unique! use static variables..
-	shipEntity_ = sceneMgr_->createEntity("Ship", "fish.mesh");
-	SceneNode *fishNode = rootNode_->createChildSceneNode("fishNode");
-	fishNode->yaw(Degree(-90));
-	fishNode->attachObject(shipEntity_);
-	fishNode->setScale(Vector3(10, 10, 10));
-
-	return true;
-}
-
-
-/**
-* Gets the ship to accelerate in the current direction.
-* The value should be between 0 and 1, with one beeing full thrust and 0 none.
-* @param value Acceleration between 0 and 1
-*/
-void OrxonoxShip::setMainThrust(const Real value)
-{
-	//currentThrust_ = value * baseThrust_;
-  currentThrust_.z = value * baseThrust_;
-}
-
-
-/**
-* Gets the ship to accelerate sideways regarding the current direction.
-* The value should be between 0 and 1, with one beeing full thrust and 0 none.
-* @param value Acceleration between 0 and 1
-*/
-void OrxonoxShip::setSideThrust(const Real value)
-{
-	//currentSideThrust_ = value * baseThrust_;
-  currentThrust_.x = value * baseThrust_;
-}
-
-
-/**
-* Gets the ship to accelerate up and down.
-* The value should be between 0 and 1, with one beeing full thrust and 0 none.
-* @param value Acceleration between 0 and 1
-*/
-void OrxonoxShip::setYThrust(const Real value)
-{
-  //currentYThrust_ = value * baseThrust_;
-  currentThrust_.y = value * baseThrust_;
-}
-
-
-/**
-* Rotate the ship along with the camera up and down.
-* @param angle Pitch value.
-*/
-void OrxonoxShip::turnUpAndDown(const Radian &angle)
-{
-  rootNode_->pitch(-angle, Node::TS_LOCAL);
-}
-
-
-/**
-* Rotate the ship along with the camera left and right.
-* @param angle Yaw value.
-*/
-void OrxonoxShip::turnLeftAndRight(const Radian &angle)
-{
-  rootNode_->yaw(-angle, Node::TS_PARENT);
-}
-
-
-/**
-* Returns the current speed of the ship according to its parent node.
-* @return The current speed.
-*/
-Vector3 OrxonoxShip::getSpeed()
-{
-  return currentSpeed_;
-}
-
-/**
-* Returns the ship's root SceneNode.
-* @return The Root Node.
-*/
-SceneNode* OrxonoxShip::getRootNode()
-{
-  return rootNode_;
-}
-
-
-/**
-* Fire a bullet (Entity with SceneNode).
-* This method creates a new Entity plus a SceneNode. But be sure not make
-* the new Node a child of RootNode_!
-* @return Bullet containing speed and entity.
-*/
-Bullet* OrxonoxShip::fire()
-{
-	// TODO: Names must be unique!
-	SceneNode *temp = rootNode_->getParentSceneNode()->createChildSceneNode(
-        "BulletNode" + StringConverter::toString(objectCounter_));
-	temp->setOrientation(rootNode_->getOrientation());
-	temp->setPosition(rootNode_->getPosition());
-	temp->setScale(Vector3(1, 1, 1) * 10);
-	temp->yaw(Degree(-90));
-	return new Bullet(temp, sceneMgr_->createEntity("bullet"
-        + StringConverter::toString(objectCounter_++), "Barrel.mesh"), currentSpeed_
-        + (rootNode_->getOrientation() * Vector3(0, 0, -1)).normalisedCopy()
-        * bulletSpeed_);
-}
-
-
-/**
-* Standard tick() function.
-* Currently, only the speed is applied according to the thrust values.
-* @param time Absolute time.
-* @param deltaTime Relative time.
-* @return Return true to continue render
-*/
-bool OrxonoxShip::tick(unsigned long time, Real deltaTime)
-{
-  Quaternion quad = rootNode_->getOrientation();
-  quad.normalise();
-  currentSpeed_ += quad * (Vector3(-1, -1, -1) * currentThrust_) * deltaTime;
-  //currentSpeed_ += quad * Vector3(0, 0, -1) * currentThrust_ * deltaTime;
-	//currentSpeed_ += quad * Vector3(-1, 0,  0) * currentSideThrust_ * deltaTime;
-
-	rootNode_->translate(currentSpeed_ * deltaTime);
-
-	return true;
-}
Index: code/branches/main_reto_vs05/src/run_manager.cc
===================================================================
--- code/branches/main_reto_vs05/src/run_manager.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/run_manager.cc	(revision 161)
@@ -39,511 +39,543 @@
 */
 
+#include "Ogre.h"
+//#include "OgreRoot.h"
+//#include "OgreSceneManager.h"
+//#include "OgreSceneNode.h"
+//#include "OgreCamera.h"
+//#include "OgreViewport.h"
+//#include "OgreRenderWindow.h"
+//#include "OgreOverlay.h"
+//#include "OgreOverlayManager.h"
+//#include "OgreOverlayElement.h"
+//#include "OgreTextureManager.h"
+//#include "OgreMaterialManager.h"
+//#include "OgreLogManager.h"
+//#include "OgreVector3.h"
+//#include "OgreStringConverter.h"
+//#include "OgreWindowEventUtilities.h"
+
+//Use this define to signify OIS will be used as a DLL
+//(so that dll import/export macros are in effect)
+#define OIS_DYNAMIC_LIB
+#include <OIS/OIS.h>
+
+#include "ogre_control.h"
+#include "orxonox_scene.h"
+#include "orxonox_ship.h"
+#include "bullet.h"
+#include "camera_manager.h"
+
 #include "run_manager.h"
 
-
-/**
-* Contructor only needs the render window and the Root object which are both
-* the OgreControl object.
-* Right now the constructor does all the initialisation work. This could also
-* be done in a new method "initialize()", for whatever purpose.
-* 
-* 
-* @param ogre_ The OgreControl object holding the render window and the Root
-*/
-RunManager::RunManager(OgreControl * ogre)
-      : ogre_(ogre), window_(ogre->getRenderWindow()), leftButtonDown_(false),
-      statsOn_(true), screenShotCounter_(0), timeUntilNextToggle_(0),
-      filtering_(TFO_BILINEAR), aniso_(1), sceneDetailIndex_(0),
-      mouseSensitivity_(0.003),
-      debugOverlay_(0), inputManager_(0), mouse_(0), keyboard_(0), joystick_(0)
-{
-
-  // SETTING UP THE SCENE
-
-  // create one new SceneManger
-  sceneMgr_ = ogre_->getRoot()->createSceneManager(ST_GENERIC, "backgroundScene_");
-
-  // background scene (world objects, skybox, lights, etc.)
-  backgroundScene_ = new OrxonoxScene(sceneMgr_);
-
-  // PLAYER SPACESHIP
-
-  // Create a space ship object and its SceneNode.
-  // Some ideas about the steering: The ship should only receive events like
-  // up, down, left, right, roll left, roll right, move down, move up, etc).
-  // Multiple interpretations of these commands would make the game more
-  // but it also makes AI steering more difficult, since for every type of
-  // steering, new methods have to be written.
-  // --> clearly define how a space ship can fly (rolling?, conservation of
-  // impuls?, direct mouse sight steeering?, etc.)
-  // It should also be considered, that the ship should provide another Node
-  // for a camera to be attached (otherwise the spaceship in front of the
-  // would be very static, never moving at all).
-
-  // Construct a new spaceship and give it the node
-  playerShip_ = new OrxonoxShip(sceneMgr_, sceneMgr_->getRootSceneNode()
-    ->createChildSceneNode("ShipNode", Vector3(20, 20, 20)));
-
-
-  // RESOURCE LOADING (using ResourceGroups if implemented)
-
-  // load all resources and create the entities by calling the initialise()
-  // methods for each object (don't initialise in the constructor!).
-  backgroundScene_->initialise();
-  playerShip_->initialise();
-
-
-  // CAMERA AND VIEWPORT
-  // TODO: create a camera manager. It should be able to change its position
-  // around the space ship (predefined states would be nice too). And it should
-  // also be able to switch between different locations (like ship, spactator,
-  // certain fixed positions (e.g. finish line, etc.)). These are just ideas.
-
-  // create camera and viewport
-  createCamera();
-  createViewports();
-
-
-  // Set default mipmap level (NB some APIs ignore this)
-  TextureManager::getSingleton().setDefaultNumMipmaps(5);
-
-  
-  // BULLET LIST FOR THE TEST APPLICATION
-
-  // TODO: Use STL to make life easier. But it works this way too..
-  bullets_ = new Bullet*[10];
-  bulletsIndex_ = 0;
-  bulletsSize_ = 10;
-
-
-  // HUMAN INTERFACE
-
-  using namespace OIS;
-
-  debugOverlay_ = OverlayManager::getSingleton()
-    .getByName("Core/DebugOverlay");
-
-  LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***");
-  ParamList pl;
-  size_t windowHnd = 0;
-  std::ostringstream windowHndStr;
-
-  window_->getCustomAttribute("WINDOW", &windowHnd);
-  windowHndStr << windowHnd;
-  pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
-
-  inputManager_ = InputManager::createInputSystem( pl );
-
-  // Create all devices (We only catch joystick exceptions here,
-  // as, most people have Key/Mouse)
-  keyboard_ = static_cast<Keyboard*>(inputManager_
-    ->createInputObject( OISKeyboard, false ));
-  mouse_ = static_cast<Mouse*>(inputManager_
-    ->createInputObject( OISMouse, false ));
-  try {
-    joystick_ = static_cast<JoyStick*>(inputManager_
-      ->createInputObject( OISJoyStick, false ));
-  }
-  catch(...) {
-    joystick_ = 0;
-  }
-
-  //Set initial mouse clipping size
-  windowResized(window_);
-
-  showDebugOverlay(true);
-
-  // REGISTER THIS OBJECT AS A WINDOW EVENT LISTENER IN OGRE
-  // It will then receive events liek windowClosed, windowResized, etc.
-  WindowEventUtilities::addWindowEventListener(window_, this);
+namespace Orxonox {
+  using namespace Ogre;
+
+  /**
+  * Contructor only needs the render window and the Root object which are both
+  * the OgreControl object.
+  * Right now the constructor does all the initialisation work. This could also
+  * be done in a new method "initialize()", for whatever purpose.
+  * 
+  * 
+  * @param ogre_ The OgreControl object holding the render window and the Root
+  */
+  RunManager::RunManager(OgreControl * ogre)
+        : ogre_(ogre), window_(ogre->getRenderWindow()), leftButtonDown_(false),
+        statsOn_(true), screenShotCounter_(0), timeUntilNextToggle_(0),
+        filtering_(TFO_BILINEAR), aniso_(1), sceneDetailIndex_(0),
+        mouseSensitivity_(0.003),
+        debugOverlay_(0), inputManager_(0), mouse_(0), keyboard_(0), joystick_(0)
+  {
+
+    // SETTING UP THE SCENE
+
+    // create one new SceneManger
+    sceneMgr_ = ogre_->getRoot()->createSceneManager(ST_GENERIC, "backgroundScene_");
+
+    // background scene (world objects, skybox, lights, etc.)
+    backgroundScene_ = new OrxonoxScene(sceneMgr_);
+
+    // PLAYER SPACESHIP
+
+    // Create a space ship object and its SceneNode.
+    // Some ideas about the steering: The ship should only receive events like
+    // up, down, left, right, roll left, roll right, move down, move up, etc).
+    // Multiple interpretations of these commands would make the game more
+    // but it also makes AI steering more difficult, since for every type of
+    // steering, new methods have to be written.
+    // --> clearly define how a space ship can fly (rolling?, conservation of
+    // impuls?, direct mouse sight steeering?, etc.)
+    // It should also be considered, that the ship should provide another Node
+    // for a camera to be attached (otherwise the spaceship in front of the
+    // would be very static, never moving at all).
+
+    // Construct a new spaceship and give it the node
+    playerShip_ = new OrxonoxShip(sceneMgr_, sceneMgr_->getRootSceneNode()
+      ->createChildSceneNode("ShipNode", Vector3(20, 20, 20)));
+
+
+    // RESOURCE LOADING (using ResourceGroups if implemented)
+
+    // load all resources and create the entities by calling the initialise()
+    // methods for each object (don't initialise in the constructor!).
+    backgroundScene_->initialise();
+    playerShip_->initialise();
+
+
+    // CAMERA AND VIEWPORT
+    // TODO: create a camera manager. It should be able to change its position
+    // around the space ship (predefined states would be nice too). And it should
+    // also be able to switch between different locations (like ship, spactator,
+    // certain fixed positions (e.g. finish line, etc.)). These are just ideas.
+
+    // create camera and viewport
+    createCamera();
+    createViewports();
+
+
+    // Set default mipmap level (NB some APIs ignore this)
+    TextureManager::getSingleton().setDefaultNumMipmaps(5);
+
+    
+    // BULLET LIST FOR THE TEST APPLICATION
+
+    // TODO: Use STL to make life easier. But it works this way too..
+    bullets_ = new Bullet*[10];
+    bulletsIndex_ = 0;
+    bulletsSize_ = 10;
+
+
+    // HUMAN INTERFACE
+
+    using namespace OIS;
+
+    debugOverlay_ = OverlayManager::getSingleton()
+      .getByName("Core/DebugOverlay");
+
+    LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***");
+    ParamList pl;
+    size_t windowHnd = 0;
+    std::ostringstream windowHndStr;
+
+    window_->getCustomAttribute("WINDOW", &windowHnd);
+    windowHndStr << windowHnd;
+    pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
+
+    inputManager_ = InputManager::createInputSystem( pl );
+
+    // Create all devices (We only catch joystick exceptions here,
+    // as, most people have Key/Mouse)
+    keyboard_ = static_cast<Keyboard*>(inputManager_
+      ->createInputObject( OISKeyboard, false ));
+    mouse_ = static_cast<Mouse*>(inputManager_
+      ->createInputObject( OISMouse, false ));
+    try {
+      joystick_ = static_cast<JoyStick*>(inputManager_
+        ->createInputObject( OISJoyStick, false ));
+    }
+    catch(...) {
+      joystick_ = 0;
+    }
+
+    //Set initial mouse clipping size
+    windowResized(window_);
+
+    showDebugOverlay(true);
+
+    // REGISTER THIS OBJECT AS A WINDOW EVENT LISTENER IN OGRE
+    // It will then receive events liek windowClosed, windowResized, etc.
+    WindowEventUtilities::addWindowEventListener(window_, this);
+  }
+
+  /**
+  * Standard destructor.
+  * Removes this object as a window event listener and deletes all created
+  * variables.
+  */
+  RunManager::~RunManager()
+  {
+    //Remove ourself as a Window listener
+    WindowEventUtilities::removeWindowEventListener(window_, this);
+    windowClosed(window_);
+
+    if (backgroundScene_)
+      delete backgroundScene_;
+    if (playerShip_)
+      delete playerShip_;
+
+    // clean up the bullet list
+    for (int i = 0; i < bulletsIndex_; i++)
+      delete bullets_[i];
+    delete bullets_;
+  }
+
+
+  /**
+  * Method to compute anyting between 2 frames.
+  * 
+  * Everything that needs to be computed during the games happens right here.
+  * The only exception are the listeners (which should only set variables,
+  * not actually do something).
+  * 
+  * @param time Absolute play time
+  * @param deltaTime Time passed since last frame
+  * @return Return false to end rendering
+  */
+  bool RunManager::tick(unsigned long time, float deltaTime)
+  {
+    // synchronize with internal class timer
+    totalTime_ = time;
+
+    // Call tick() for every object
+    // This could be done by registering (needs a factory..)
+    backgroundScene_->tick(time, deltaTime);
+    playerShip_->tick(time, deltaTime);
+
+
+    // Update the 'HUD'
+    updateStats();
+
+    // update the bullet positions
+    for (int i = 0; i < bulletsIndex_; i++)
+    {
+      bullets_[i]->mNode->translate(bullets_[i]->mSpeed*deltaTime);
+      bullets_[i]->mNode->yaw(Degree(deltaTime*100));
+      bullets_[i]->mNode->roll(Degree(deltaTime*300));
+    }
+
+    // HUMAN INTERFACE
+
+    using namespace OIS;
+
+    if(window_->isClosed())	return false;
+
+    //Need to capture/update each device
+    keyboard_->capture();
+    mouse_->capture();
+    if( joystick_ ) joystick_->capture();
+
+    bool buffJ = (joystick_) ? joystick_->buffered() : true;
+
+    //Check if one of the devices is not buffered
+    if( !mouse_->buffered() || !keyboard_->buffered() || !buffJ )
+    {
+      // one of the input modes is immediate, so setup what
+      // is needed for immediate movement
+      if (timeUntilNextToggle_ >= 0)
+        timeUntilNextToggle_ -= deltaTime;
+    }
+
+    // handle HID devices
+    if( processUnbufferedKeyInput() == false )
+        return false;
+    if( processUnbufferedMouseInput() == false )
+        return false;
+
+    // keep rendering
+    return true;
+  }
+
+
+  /**
+  * Adjust mouse clipping area.
+  * This method is called by Ogre without regards of tick()!
+  * Avoid doing too much in this call.
+  * @param rw render window
+  */
+  void RunManager::windowResized(RenderWindow* rw)
+  {
+    unsigned int width, height, depth;
+    int left, top;
+    rw->getMetrics(width, height, depth, left, top);
+
+    const OIS::MouseState &ms = mouse_->getMouseState();
+    ms.width = width;
+    ms.height = height;
+  }
+
+
+  /**
+  * Unattach OIS before window shutdown (very important under Linux).
+  * Again, avoid computing a lot in this function.
+  * @param rw Render Window
+  */
+  void RunManager::windowClosed(RenderWindow* rw)
+  {
+    //Only close for window that created OIS (the main window in these demos)
+    if( rw == window_ )
+    {
+      if( inputManager_ )
+      {
+        inputManager_->destroyInputObject( mouse_ );
+        inputManager_->destroyInputObject( keyboard_ );
+        inputManager_->destroyInputObject( joystick_ );
+
+        OIS::InputManager::destroyInputSystem(inputManager_);
+        inputManager_ = 0;
+      }
+    }
+  }
+
+  /**
+  * Processes the Keyboard input.
+  * TODO: Use listeners to improve performance.
+  * A lookup table should be implemented to bind any key to a specific action.
+  * @return Return true to keep rendering
+  */
+  bool RunManager::processUnbufferedKeyInput()
+  {
+    using namespace OIS;
+
+    if(keyboard_->isKeyDown(KC_A) || keyboard_->isKeyDown(KC_LEFT))
+      playerShip_->setSideThrust(1);
+    else if(keyboard_->isKeyDown(KC_D) || keyboard_->isKeyDown(KC_RIGHT))
+      playerShip_->setSideThrust(-1);
+    else
+      playerShip_->setSideThrust(0);
+
+    if(keyboard_->isKeyDown(KC_UP) || keyboard_->isKeyDown(KC_W) )
+      playerShip_->setMainThrust(1);
+    else if(keyboard_->isKeyDown(KC_DOWN) || keyboard_->isKeyDown(KC_S) )
+      playerShip_->setMainThrust(-1);
+    else
+      playerShip_->setMainThrust(0);
+
+    if (keyboard_->isKeyDown(KC_C))
+      playerShip_->setYThrust(1);
+    else if (keyboard_->isKeyDown(KC_SPACE))
+      playerShip_->setYThrust(-1);
+    else
+      playerShip_->setYThrust(0);
+
+    if( keyboard_->isKeyDown(KC_ESCAPE) || keyboard_->isKeyDown(KC_Q) )
+      return false;
+
+    if( keyboard_->isKeyDown(KC_F) && timeUntilNextToggle_ <= 0 )
+    {
+      statsOn_ = !statsOn_;
+      showDebugOverlay(statsOn_);
+      timeUntilNextToggle_ = 1;
+    }
+
+    if( keyboard_->isKeyDown(KC_T) && timeUntilNextToggle_ <= 0 )
+    {
+      switch(filtering_)
+      {
+      case TFO_BILINEAR:
+        filtering_ = TFO_TRILINEAR;
+        aniso_ = 1;
+        break;
+      case TFO_TRILINEAR:
+        filtering_ = TFO_ANISOTROPIC;
+        aniso_ = 8;
+        break;
+      case TFO_ANISOTROPIC:
+        filtering_ = TFO_BILINEAR;
+        aniso_ = 1;
+        break;
+      default: break;
+      }
+      MaterialManager::getSingleton().setDefaultTextureFiltering(filtering_);
+      MaterialManager::getSingleton().setDefaultAnisotropy(aniso_);
+
+      showDebugOverlay(statsOn_);
+      timeUntilNextToggle_ = 1;
+    }
+
+    if(keyboard_->isKeyDown(KC_SYSRQ) && timeUntilNextToggle_ <= 0)
+    {
+      std::ostringstream ss;
+      ss << "screenshot_" << ++screenShotCounter_ << ".png";
+      window_->writeContentsToFile(ss.str());
+      timeUntilNextToggle_ = 0.5;
+      debugText_ = "Saved: " + ss.str();
+    }
+
+    if(keyboard_->isKeyDown(KC_R) && timeUntilNextToggle_ <=0)
+    {
+      sceneDetailIndex_ = (sceneDetailIndex_+1)%3 ;
+      switch(sceneDetailIndex_) {
+          case 0 : camera_->setPolygonMode(PM_SOLID); break;
+          case 1 : camera_->setPolygonMode(PM_WIREFRAME); break;
+          case 2 : camera_->setPolygonMode(PM_POINTS); break;
+      }
+      timeUntilNextToggle_ = 0.5;
+    }
+
+    static bool displayCameraDetails = false;
+    if(keyboard_->isKeyDown(KC_P) && timeUntilNextToggle_ <= 0)
+    {
+      displayCameraDetails = !displayCameraDetails;
+      timeUntilNextToggle_ = 0.5;
+      if (!displayCameraDetails)
+        debugText_ = "";
+    }
+
+    // Print camera details
+    if(displayCameraDetails)
+      debugText_ = " | Speed = "
+            + StringConverter::toString(playerShip_->getSpeed());
+    // debugText_ = "P: " + StringConverter::toString(camera_
+    //      ->getDerivedPosition()) + " " + "O: "
+    //      + StringConverter::toString(camera_->getDerivedOrientation());
+
+    // Return true to continue rendering
+    return true;
+  }
+
+
+  /**
+  * Processes the Mouse input.
+  * TODO: Use listeners to improve performance.
+  * A lookup table should be implemented to bind ANY button or movement
+  * to a specific action.
+  * @return Return true to keep rendering
+  */
+  bool RunManager::processUnbufferedMouseInput()
+  {
+    using namespace OIS;
+
+    const MouseState &ms = mouse_->getMouseState();
+
+    // This is a 'hack' to show some flying barrels..
+    // Usually, the Bullet created by the ship should be managed
+    // by the physics engine..
+    if (ms.buttonDown(MB_Left) && !leftButtonDown_)
+    {
+      // Prevent continuous fire for the moment.
+      leftButtonDown_ = true;
+      
+      // let ship fire one shot with its only weapon (Barrels..)
+      Bullet *tempBullet = playerShip_->fire();
+
+      // resize array if neccessary (double the size then)
+      if (bulletsIndex_ >= bulletsSize_)
+      {
+        // redimension the array
+        Bullet **tempArray = new Bullet*[2*bulletsSize_];
+        for (int i = 0; i < bulletsSize_; i++)
+          tempArray[i] = bullets_[i];
+        bulletsSize_ *= 2;
+        delete bullets_;
+        bullets_ = tempArray;
+      }
+
+      // add the bullet to the list
+      bullets_[bulletsIndex_++] = tempBullet;
+
+    }
+    else if (!ms.buttons)
+      leftButtonDown_ = false;
+
+    // space ship steering. This should definitely be done in the steering object
+    // Simply give it the mouse movements.
+    playerShip_->turnUpAndDown(Radian(ms.Y.rel * mouseSensitivity_));
+    playerShip_->turnLeftAndRight(Radian(ms.X.rel * mouseSensitivity_));
+    //playerShip_->mRootNode->pitch(Degree(-ms.Y.rel * 0.13), Ogre::Node::TransformSpace::TS_LOCAL);
+    //playerShip_->mRootNode->yaw(Degree(-ms.X.rel * 0.13), Ogre::Node::TransformSpace::TS_PARENT);
+
+    // keep rendering
+    return true;
+  }
+
+  /**
+  * Show the debug overlay of desired.
+  * @param show Whether or not to show the debug overlay
+  */
+  void RunManager::showDebugOverlay(bool show)
+  {
+    if (debugOverlay_)
+    {
+      if (show)
+        debugOverlay_->show();
+      else
+        debugOverlay_->hide();
+    }
+  }
+
+
+  /**
+  * Show stats (e.g. FPS) in the left lower corner of the screen.
+  * Copied from the ExampleFrameListener.h in the Ogre SDK
+  */
+  void RunManager::updateStats(void)
+  {
+    static String currFps = "Current FPS: ";
+    static String avgFps = "Average FPS: ";
+    static String bestFps = "Best FPS: ";
+    static String worstFps = "Worst FPS: ";
+    static String tris = "Triangle Count: ";
+    static String batches = "Batch Count: ";
+
+    // update stats when necessary
+    try {
+      OverlayElement* guiAvg = OverlayManager::getSingleton()
+        .getOverlayElement("Core/AverageFps");
+      OverlayElement* guiCurr = OverlayManager::getSingleton()
+        .getOverlayElement("Core/CurrFps");
+      OverlayElement* guiBest = OverlayManager::getSingleton()
+        .getOverlayElement("Core/BestFps");
+      OverlayElement* guiWorst = OverlayManager::getSingleton()
+        .getOverlayElement("Core/WorstFps");
+
+      const RenderTarget::FrameStats& stats = window_->getStatistics();
+      guiAvg->setCaption(avgFps + StringConverter::toString(stats.avgFPS));
+      guiCurr->setCaption(currFps + StringConverter::toString(stats.lastFPS));
+      guiBest->setCaption(bestFps + StringConverter::toString(stats.bestFPS)
+        +" "+StringConverter::toString(stats.bestFrameTime)+" ms");
+      guiWorst->setCaption(worstFps + StringConverter::toString(stats.worstFPS)
+        +" "+StringConverter::toString(stats.worstFrameTime)+" ms");
+
+      OverlayElement* guiTris = OverlayManager::getSingleton()
+        .getOverlayElement("Core/NumTris");
+      guiTris->setCaption(tris + StringConverter::toString(stats.triangleCount));
+
+      OverlayElement* guiBatches = OverlayManager::getSingleton()
+        .getOverlayElement("Core/NumBatches");
+      guiBatches->setCaption(batches
+        + StringConverter::toString(stats.batchCount));
+
+      OverlayElement* guiDbg = OverlayManager::getSingleton()
+        .getOverlayElement("Core/DebugText");
+      guiDbg->setCaption(debugText_);
+    }
+    catch(...) { /* ignore */ }
+  }
+
+
+
+  /**
+  * Simple camera creator.
+  * playerShip_Node->attachObject(camera_) should no be here! This is what the camera
+  * manager is for. Right now, this method should do just fine, setting the
+  * cam behind the ship.
+  */
+  void RunManager::createCamera(void)
+  {
+    camera_ = sceneMgr_->createCamera("PlayerCam");
+    playerShip_->getRootNode()->attachObject(camera_);
+    camera_->setNearClipDistance(5);
+    camera_->setPosition(Vector3(0,10,500));
+    camera_->lookAt(Vector3(0,0,0));
+  }
+
+  /**
+  * Simple viewport creator.
+  * TODO: fully understand the concept of viewports concerning orxnox.
+  * E.g. do we need splitscreen mode?
+  * For now the viewport uses the entire render window and is based on the one
+  * camera created so far.
+  */
+  void RunManager::createViewports(void)
+  {
+    // Create one viewport, entire window
+    Viewport* vp = window_->addViewport(camera_);
+    vp->setBackgroundColour(ColourValue(0,0,0));
+
+    // Alter the camera aspect ratio to match the viewport
+    camera_->setAspectRatio(
+      Real(vp->getActualWidth()) / Real(vp->getActualHeight()));
+  }
+
 }
-
-/**
-* Standard destructor.
-* Removes this object as a window event listener and deletes all created
-* variables.
-*/
-RunManager::~RunManager()
-{
-  //Remove ourself as a Window listener
-  WindowEventUtilities::removeWindowEventListener(window_, this);
-  windowClosed(window_);
-
-  if (backgroundScene_)
-    delete backgroundScene_;
-  if (playerShip_)
-    delete playerShip_;
-
-  // clean up the bullet list
-  for (int i = 0; i < bulletsIndex_; i++)
-    delete bullets_[i];
-  delete bullets_;
-}
-
-
-/**
-* Method to compute anyting between 2 frames.
-* 
-* Everything that needs to be computed during the games happens right here.
-* The only exception are the listeners (which should only set variables,
-* not actually do something).
-* 
-* @param time Absolute play time
-* @param deltaTime Time passed since last frame
-* @return Return false to end rendering
-*/
-bool RunManager::tick(unsigned long time, float deltaTime)
-{
-  // synchronize with internal class timer
-  totalTime_ = time;
-
-  // Call tick() for every object
-  // This could be done by registering (needs a factory..)
-  backgroundScene_->tick(time, deltaTime);
-  playerShip_->tick(time, deltaTime);
-
-
-  // Update the 'HUD'
-  updateStats();
-
-  // update the bullet positions
-  for (int i = 0; i < bulletsIndex_; i++)
-  {
-    bullets_[i]->mNode->translate(bullets_[i]->mSpeed*deltaTime);
-    bullets_[i]->mNode->yaw(Degree(deltaTime*100));
-    bullets_[i]->mNode->roll(Degree(deltaTime*300));
-  }
-
-  // HUMAN INTERFACE
-
-  using namespace OIS;
-
-  if(window_->isClosed())	return false;
-
-  //Need to capture/update each device
-  keyboard_->capture();
-  mouse_->capture();
-  if( joystick_ ) joystick_->capture();
-
-  bool buffJ = (joystick_) ? joystick_->buffered() : true;
-
-  //Check if one of the devices is not buffered
-  if( !mouse_->buffered() || !keyboard_->buffered() || !buffJ )
-  {
-    // one of the input modes is immediate, so setup what
-    // is needed for immediate movement
-    if (timeUntilNextToggle_ >= 0)
-      timeUntilNextToggle_ -= deltaTime;
-  }
-
-  // handle HID devices
-  if( processUnbufferedKeyInput() == false )
-      return false;
-  if( processUnbufferedMouseInput() == false )
-      return false;
-
-  // keep rendering
-  return true;
-}
-
-
-/**
-* Adjust mouse clipping area.
-* This method is called by Ogre without regards of tick()!
-* Avoid doing too much in this call.
-* @param rw render window
-*/
-void RunManager::windowResized(RenderWindow* rw)
-{
-  unsigned int width, height, depth;
-  int left, top;
-  rw->getMetrics(width, height, depth, left, top);
-
-  const OIS::MouseState &ms = mouse_->getMouseState();
-  ms.width = width;
-  ms.height = height;
-}
-
-
-/**
-* Unattach OIS before window shutdown (very important under Linux).
-* Again, avoid computing a lot in this function.
-* @param rw Render Window
-*/
-void RunManager::windowClosed(RenderWindow* rw)
-{
-  //Only close for window that created OIS (the main window in these demos)
-  if( rw == window_ )
-  {
-    if( inputManager_ )
-    {
-      inputManager_->destroyInputObject( mouse_ );
-      inputManager_->destroyInputObject( keyboard_ );
-      inputManager_->destroyInputObject( joystick_ );
-
-      OIS::InputManager::destroyInputSystem(inputManager_);
-      inputManager_ = 0;
-    }
-  }
-}
-
-/**
-* Processes the Keyboard input.
-* TODO: Use listeners to improve performance.
-* A lookup table should be implemented to bind any key to a specific action.
-* @return Return true to keep rendering
-*/
-bool RunManager::processUnbufferedKeyInput()
-{
-  using namespace OIS;
-
-  if(keyboard_->isKeyDown(KC_A) || keyboard_->isKeyDown(KC_LEFT))
-    playerShip_->setSideThrust(1);
-  else if(keyboard_->isKeyDown(KC_D) || keyboard_->isKeyDown(KC_RIGHT))
-    playerShip_->setSideThrust(-1);
-  else
-    playerShip_->setSideThrust(0);
-
-  if(keyboard_->isKeyDown(KC_UP) || keyboard_->isKeyDown(KC_W) )
-    playerShip_->setMainThrust(1);
-  else if(keyboard_->isKeyDown(KC_DOWN) || keyboard_->isKeyDown(KC_S) )
-    playerShip_->setMainThrust(-1);
-  else
-    playerShip_->setMainThrust(0);
-
-  if (keyboard_->isKeyDown(KC_C))
-    playerShip_->setYThrust(1);
-  else if (keyboard_->isKeyDown(KC_SPACE))
-    playerShip_->setYThrust(-1);
-  else
-    playerShip_->setYThrust(0);
-
-  if( keyboard_->isKeyDown(KC_ESCAPE) || keyboard_->isKeyDown(KC_Q) )
-    return false;
-
-  if( keyboard_->isKeyDown(KC_F) && timeUntilNextToggle_ <= 0 )
-  {
-    statsOn_ = !statsOn_;
-    showDebugOverlay(statsOn_);
-    timeUntilNextToggle_ = 1;
-  }
-
-  if( keyboard_->isKeyDown(KC_T) && timeUntilNextToggle_ <= 0 )
-  {
-    switch(filtering_)
-    {
-    case TFO_BILINEAR:
-      filtering_ = TFO_TRILINEAR;
-      aniso_ = 1;
-      break;
-    case TFO_TRILINEAR:
-      filtering_ = TFO_ANISOTROPIC;
-      aniso_ = 8;
-      break;
-    case TFO_ANISOTROPIC:
-      filtering_ = TFO_BILINEAR;
-      aniso_ = 1;
-      break;
-    default: break;
-    }
-    MaterialManager::getSingleton().setDefaultTextureFiltering(filtering_);
-    MaterialManager::getSingleton().setDefaultAnisotropy(aniso_);
-
-    showDebugOverlay(statsOn_);
-    timeUntilNextToggle_ = 1;
-  }
-
-  if(keyboard_->isKeyDown(KC_SYSRQ) && timeUntilNextToggle_ <= 0)
-  {
-    std::ostringstream ss;
-    ss << "screenshot_" << ++screenShotCounter_ << ".png";
-    window_->writeContentsToFile(ss.str());
-    timeUntilNextToggle_ = 0.5;
-    debugText_ = "Saved: " + ss.str();
-  }
-
-  if(keyboard_->isKeyDown(KC_R) && timeUntilNextToggle_ <=0)
-  {
-    sceneDetailIndex_ = (sceneDetailIndex_+1)%3 ;
-    switch(sceneDetailIndex_) {
-        case 0 : camera_->setPolygonMode(PM_SOLID); break;
-        case 1 : camera_->setPolygonMode(PM_WIREFRAME); break;
-        case 2 : camera_->setPolygonMode(PM_POINTS); break;
-    }
-    timeUntilNextToggle_ = 0.5;
-  }
-
-  static bool displayCameraDetails = false;
-  if(keyboard_->isKeyDown(KC_P) && timeUntilNextToggle_ <= 0)
-  {
-    displayCameraDetails = !displayCameraDetails;
-    timeUntilNextToggle_ = 0.5;
-    if (!displayCameraDetails)
-      debugText_ = "";
-  }
-
-  // Print camera details
-  if(displayCameraDetails)
-    debugText_ = " | Speed = "
-          + StringConverter::toString(playerShip_->getSpeed());
-  // debugText_ = "P: " + StringConverter::toString(camera_
-  //      ->getDerivedPosition()) + " " + "O: "
-  //      + StringConverter::toString(camera_->getDerivedOrientation());
-
-  // Return true to continue rendering
-  return true;
-}
-
-
-/**
-* Processes the Mouse input.
-* TODO: Use listeners to improve performance.
-* A lookup table should be implemented to bind ANY button or movement
-* to a specific action.
-* @return Return true to keep rendering
-*/
-bool RunManager::processUnbufferedMouseInput()
-{
-  using namespace OIS;
-
-  const MouseState &ms = mouse_->getMouseState();
-
-  // This is a 'hack' to show some flying barrels..
-  // Usually, the Bullet created by the ship should be managed
-  // by the physics engine..
-  if (ms.buttonDown(MB_Left) && !leftButtonDown_)
-  {
-    // Prevent continuous fire for the moment.
-    leftButtonDown_ = true;
-    
-    // let ship fire one shot with its only weapon (Barrels..)
-    Bullet *tempBullet = playerShip_->fire();
-
-    // resize array if neccessary (double the size then)
-    if (bulletsIndex_ >= bulletsSize_)
-    {
-      // redimension the array
-      Bullet **tempArray = new Bullet*[2*bulletsSize_];
-      for (int i = 0; i < bulletsSize_; i++)
-        tempArray[i] = bullets_[i];
-      bulletsSize_ *= 2;
-      delete bullets_;
-      bullets_ = tempArray;
-    }
-
-    // add the bullet to the list
-    bullets_[bulletsIndex_++] = tempBullet;
-
-  }
-  else if (!ms.buttons)
-    leftButtonDown_ = false;
-
-  // space ship steering. This should definitely be done in the steering object
-  // Simply give it the mouse movements.
-  playerShip_->turnUpAndDown(Radian(ms.Y.rel * mouseSensitivity_));
-  playerShip_->turnLeftAndRight(Radian(ms.X.rel * mouseSensitivity_));
-  //playerShip_->mRootNode->pitch(Degree(-ms.Y.rel * 0.13), Ogre::Node::TransformSpace::TS_LOCAL);
-  //playerShip_->mRootNode->yaw(Degree(-ms.X.rel * 0.13), Ogre::Node::TransformSpace::TS_PARENT);
-
-  // keep rendering
-  return true;
-}
-
-/**
-* Show the debug overlay of desired.
-* @param show Whether or not to show the debug overlay
-*/
-void RunManager::showDebugOverlay(bool show)
-{
-  if (debugOverlay_)
-  {
-    if (show)
-      debugOverlay_->show();
-    else
-      debugOverlay_->hide();
-  }
-}
-
-
-/**
-* Show stats (e.g. FPS) in the left lower corner of the screen.
-* Copied from the ExampleFrameListener.h in the Ogre SDK
-*/
-void RunManager::updateStats(void)
-{
-  static String currFps = "Current FPS: ";
-  static String avgFps = "Average FPS: ";
-  static String bestFps = "Best FPS: ";
-  static String worstFps = "Worst FPS: ";
-  static String tris = "Triangle Count: ";
-  static String batches = "Batch Count: ";
-
-  // update stats when necessary
-  try {
-    OverlayElement* guiAvg = OverlayManager::getSingleton()
-      .getOverlayElement("Core/AverageFps");
-    OverlayElement* guiCurr = OverlayManager::getSingleton()
-      .getOverlayElement("Core/CurrFps");
-    OverlayElement* guiBest = OverlayManager::getSingleton()
-      .getOverlayElement("Core/BestFps");
-    OverlayElement* guiWorst = OverlayManager::getSingleton()
-      .getOverlayElement("Core/WorstFps");
-
-    const RenderTarget::FrameStats& stats = window_->getStatistics();
-    guiAvg->setCaption(avgFps + StringConverter::toString(stats.avgFPS));
-    guiCurr->setCaption(currFps + StringConverter::toString(stats.lastFPS));
-    guiBest->setCaption(bestFps + StringConverter::toString(stats.bestFPS)
-      +" "+StringConverter::toString(stats.bestFrameTime)+" ms");
-    guiWorst->setCaption(worstFps + StringConverter::toString(stats.worstFPS)
-      +" "+StringConverter::toString(stats.worstFrameTime)+" ms");
-
-    OverlayElement* guiTris = OverlayManager::getSingleton()
-      .getOverlayElement("Core/NumTris");
-    guiTris->setCaption(tris + StringConverter::toString(stats.triangleCount));
-
-    OverlayElement* guiBatches = OverlayManager::getSingleton()
-      .getOverlayElement("Core/NumBatches");
-    guiBatches->setCaption(batches
-      + StringConverter::toString(stats.batchCount));
-
-    OverlayElement* guiDbg = OverlayManager::getSingleton()
-      .getOverlayElement("Core/DebugText");
-    guiDbg->setCaption(debugText_);
-  }
-  catch(...) { /* ignore */ }
-}
-
-
-
-/**
-* Simple camera creator.
-* playerShip_Node->attachObject(camera_) should no be here! This is what the camera
-* manager is for. Right now, this method should do just fine, setting the
-* cam behind the ship.
-*/
-void RunManager::createCamera(void)
-{
-  camera_ = sceneMgr_->createCamera("PlayerCam");
-  playerShip_->getRootNode()->attachObject(camera_);
-  camera_->setNearClipDistance(5);
-  camera_->setPosition(Vector3(0,10,500));
-  camera_->lookAt(Vector3(0,0,0));
-}
-
-/**
-* Simple viewport creator.
-* TODO: fully understand the concept of viewports concerning orxnox.
-* E.g. do we need splitscreen mode?
-* For now the viewport uses the entire render window and is based on the one
-* camera created so far.
-*/
-void RunManager::createViewports(void)
-{
-  // Create one viewport, entire window
-  Viewport* vp = window_->addViewport(camera_);
-  vp->setBackgroundColour(ColourValue(0,0,0));
-
-  // Alter the camera aspect ratio to match the viewport
-  camera_->setAspectRatio(
-    Real(vp->getActualWidth()) / Real(vp->getActualHeight()));
-}
Index: code/branches/main_reto_vs05/src/weapon_manager.cc
===================================================================
--- code/branches/main_reto_vs05/src/weapon_manager.cc	(revision 160)
+++ code/branches/main_reto_vs05/src/weapon_manager.cc	(revision 161)
@@ -26,13 +26,21 @@
  */
 
+#include "OgreSceneManager.h"
+
 #include "weapon_manager.h"
 
-WeaponManager::WeaponManager(SceneManager *mSceneMgr)
-{
-	
-}
+
+namespace Orxonox {
+  using namespace Ogre;
+
+  WeaponManager::WeaponManager(SceneManager *mSceneMgr)
+  {
+  	
+  }
 
 
-WeaponManager::~WeaponManager()
-{
+  WeaponManager::~WeaponManager()
+  {
+  }
+
 }
