Index: code/branches/FICN/src/orxonox/objects/Ambient.cc
===================================================================
--- code/branches/FICN/src/orxonox/objects/Ambient.cc	(revision 507)
+++ code/branches/FICN/src/orxonox/objects/Ambient.cc	(revision 507)
@@ -0,0 +1,42 @@
+#include <OgreSceneManager.h>
+#include <string>
+
+#include "../orxonox.h"
+#include "../../tinyxml/tinyxml.h"
+#include "../../misc/Tokenizer.h"
+#include "../../misc/String2Number.h"
+
+#include "Ambient.h"
+
+namespace orxonox
+{
+    CreateFactory(Ambient);
+
+    Ambient::Ambient()
+    {
+        RegisterObject(Ambient);
+    }
+
+    Ambient::~Ambient()
+    {
+    }
+
+    void Ambient::loadParams(TiXmlElement* xmlElem)
+    {
+    	Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
+    	
+    	if (xmlElem->Attribute("colourvalue"))
+    	{
+	    	
+	    	std::vector<std::string> colourvalues = tokenize(xmlElem->Attribute("colourvalue"),",");
+	    	float r, g, b;
+    	 	String2Number<float>(r, colourvalues[0]);
+	    	String2Number<float>(g, colourvalues[1]);
+	    	String2Number<float>(b, colourvalues[2]);
+	    	 
+	    	mgr->setAmbientLight(ColourValue(r,g,b));
+	    	
+	    	std::cout << "Loader: Set ambient light: "<<r<<" " << g << " " << b  << std::endl << std::endl;
+    	}   	
+   }
+}
Index: code/branches/FICN/src/orxonox/objects/Ambient.h
===================================================================
--- code/branches/FICN/src/orxonox/objects/Ambient.h	(revision 507)
+++ code/branches/FICN/src/orxonox/objects/Ambient.h	(revision 507)
@@ -0,0 +1,24 @@
+#ifndef _OBJECT_AMBIENT_H__
+#define _OBJECT_AMBIENT_H__
+
+#include "BaseObject.h"
+#include "../../tinyxml/tinyxml.h"
+
+namespace orxonox
+{
+    class Ambient : public BaseObject
+    {
+        public:
+            Ambient();
+            virtual ~Ambient();
+
+            
+            void loadParams(TiXmlElement* xmlElem);
+
+        private:
+            
+
+    };
+}
+
+#endif
Index: code/branches/FICN/src/orxonox/objects/CMakeLists.txt
===================================================================
--- code/branches/FICN/src/orxonox/objects/CMakeLists.txt	(revision 497)
+++ code/branches/FICN/src/orxonox/objects/CMakeLists.txt	(revision 507)
@@ -7,4 +7,6 @@
   test2.cc
   test3.cc
+  Ambient.cc
+  Skybox.cc
 )
 
Index: code/branches/FICN/src/orxonox/objects/Skybox.cc
===================================================================
--- code/branches/FICN/src/orxonox/objects/Skybox.cc	(revision 507)
+++ code/branches/FICN/src/orxonox/objects/Skybox.cc	(revision 507)
@@ -0,0 +1,36 @@
+#include <OgreSceneManager.h>
+#include <string>
+
+#include "../orxonox.h"
+#include "../../tinyxml/tinyxml.h"
+#include "../../misc/Tokenizer.h"
+#include "../../misc/String2Number.h"
+
+#include "Skybox.h"
+
+namespace orxonox
+{
+    CreateFactory(Skybox);
+
+    Skybox::Skybox()
+    {
+        RegisterObject(Skybox);
+    }
+
+    Skybox::~Skybox()
+    {
+    }
+
+    void Skybox::loadParams(TiXmlElement* xmlElem)
+    {
+    	Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
+    	
+    	if (xmlElem->Attribute("src"))
+    	{
+    		std::string skyboxSrc = xmlElem->Attribute("src");
+	    	mgr->setSkyBox(true, skyboxSrc);
+	    	
+	    	std::cout << "Loader: Set skybox: "<< skyboxSrc << std::endl << std::endl;
+    	}   	
+   }
+}
Index: code/branches/FICN/src/orxonox/objects/Skybox.h
===================================================================
--- code/branches/FICN/src/orxonox/objects/Skybox.h	(revision 507)
+++ code/branches/FICN/src/orxonox/objects/Skybox.h	(revision 507)
@@ -0,0 +1,24 @@
+#ifndef _OBJECT_SKYBOX_H__
+#define _OBJECT_SKYBOX_H__
+
+#include "BaseObject.h"
+#include "../../tinyxml/tinyxml.h"
+
+namespace orxonox
+{
+    class Skybox : public BaseObject
+    {
+        public:
+            Skybox();
+            virtual ~Skybox();
+
+            
+            void loadParams(TiXmlElement* xmlElem);
+
+        private:
+            
+
+    };
+}
+
+#endif
Index: code/branches/FICN/src/orxonox/objects/test1.cc
===================================================================
--- code/branches/FICN/src/orxonox/objects/test1.cc	(revision 497)
+++ code/branches/FICN/src/orxonox/objects/test1.cc	(revision 507)
@@ -72,11 +72,5 @@
     void Test1::loadParams(TiXmlElement* xmlElem)
     {
-    	Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
-    	
-    	mgr->setAmbientLight(ColourValue(1,0,0));
-    	
-    	
-    	
-    	std::cout<< xmlElem->GetText()<<std::endl;
+
     	
     	
