Index: GTP/trunk/App/Games/CarDriving_BME/runsetup.bat
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/runsetup.bat	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/runsetup.bat	(revision 1049)
@@ -0,0 +1,1 @@
+run.exe -configure
Index: GTP/trunk/App/Games/CarDriving_BME/quake3settings.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/quake3settings.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/quake3settings.cfg	(revision 1049)
@@ -0,0 +1,2 @@
+Pak0Location: f:\quake3arena\baseq3\pak0.pk3
+Map: maps/q3dm3.bsp
Index: GTP/trunk/App/Games/CarDriving_BME/resources.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/resources.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/resources.cfg	(revision 1049)
@@ -0,0 +1,19 @@
+# Resource locations to be added to the 'boostrap' path
+# This also contains the minimum you need to use the Ogre example framework
+[Bootstrap]
+Zip=./Media/packs/OgreCore.zip
+
+# Resource locations to be added to the default path
+[General]
+FileSystem=./Media
+FileSystem=./Media/fonts
+FileSystem=./Media/materials/programs
+FileSystem=./Media/materials/scripts
+FileSystem=./Media/materials/textures
+FileSystem=./Media/models
+FileSystem=./Media/overlays
+FileSystem=./Media/particle
+FileSystem=./Media/gui
+Zip=./Media/packs/cubemapsJS.zip
+Zip=./Media/packs/smokealphaclip.zip
+
Index: GTP/trunk/App/Games/CarDriving_BME/media.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/media.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/media.cfg	(revision 1049)
@@ -0,0 +1,16 @@
+Mesh=ogrehead.mesh
+Mesh=geosphere4500.mesh
+Mesh=razor.mesh
+Mesh=knot.mesh
+Mesh=RZR-002.mesh
+Mesh=geosphere8000.mesh
+Mesh=sphere.mesh
+
+CubeMap=cubescene.jpg
+CubeMap=early_morning.jpg
+CubeMap=cubemap.jpg
+CubeMap=morning.jpg
+CubeMap=cloudy_noon.jpg
+CubeMap=evening.jpg
+CubeMap=stormy.jpg
+CubeMap=stevecube.jpg
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_Glow.compositor
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_Glow.compositor	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_Glow.compositor	(revision 1049)
@@ -0,0 +1,82 @@
+compositor GameTools/Glow
+{
+    technique
+    {
+        texture scene target_width target_height PF_FLOAT16_RGBA
+		texture cut 256 256 PF_FLOAT16_RGBA		        
+        texture rt0 256 256 PF_FLOAT16_RGBA        
+        texture rt1 256 256 PF_FLOAT16_RGBA
+        texture prev 256 256 PF_FLOAT16_RGBA
+   
+		target prev
+		{
+			input none
+			only_initial on
+			pass render_quad
+			{
+				material GameTools/PostProcBlack				
+			}
+		}
+		
+        target scene
+        {
+            // Render output from previous compositor (or original scene)
+            input previous
+        }
+		
+       target cut
+        {
+            input none
+			
+            pass render_quad
+            {
+                material GameTools/GlowCut
+                input 0 scene
+               input 1 prev
+            }
+        }
+        target rt0
+        {
+            input none
+          
+            pass render_quad
+            {
+                material GameTools/GlowBlurV
+                input 0 cut
+            }
+        } 
+        target rt1
+        {
+            input none
+         
+            pass render_quad
+            {
+               material GameTools/GlowBlurH
+                input 0 rt0
+            }
+		}
+        target prev        
+        {
+		     input none
+		    
+           pass render_quad
+           {
+				material GameTools/TextureCopy
+				input 0 rt1
+				
+           }
+       }
+      
+        target_output
+        {
+            input none
+          
+          pass render_quad
+            {
+               material GameTools/GlowAdd
+                input 0 scene
+                input 1 rt1
+            }
+        }
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.program
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.program	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.program	(revision 1049)
@@ -0,0 +1,366 @@
+vertex_program bumpmappedVS hlsl
+{
+	source bumpmapped.hlsl
+	entry_point deaultVS
+	target vs_2_0 
+} 
+
+fragment_program bumpmappedPS hlsl
+{
+	source bumpmapped.hlsl
+	entry_point deaultPS
+	target ps_3_0
+}
+
+fragment_program bumpmappedDoubleTexturePS hlsl
+{
+	source bumpmapped.hlsl
+	entry_point doubleTexturePS
+	target ps_3_0
+}
+
+vertex_program GameTools/PostProc1_VS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point defaultVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/PostProc_Black hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point BlackPS
+	target ps_2_0
+
+} 
+
+fragment_program GameTools/PostProc1_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point defaultPS
+	target ps_2_0
+
+} 
+
+fragment_program GameTools/GlowCut_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point GlowCutPS
+	target ps_2_0
+
+} 
+
+fragment_program GameTools/Luminance_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point LuminancePS
+	target ps_2_0
+
+} 
+
+fragment_program GameTools/GlowAdd_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point GlowAddPS
+	target ps_2_0
+} 
+
+fragment_program GameTools/ToneMap_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point ToneMapPS
+	target ps_2_0
+} 
+
+fragment_program GameTools/GlowBlurH_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point GlowBlurHPS
+	target ps_2_0
+} 
+
+fragment_program GameTools/GlowBlurV_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point GlowBlurVPS
+	target ps_2_0
+} 
+
+fragment_program GameTools/TextureCopy_PS hlsl
+{
+	source GameTools_PostProc.hlsl
+	entry_point CopyPS
+	target ps_2_0
+} 
+
+
+// Cube mapping programs
+vertex_program GameTools/CubeMap/VertexPrograms/DefaultVS hlsl
+{
+	source GameTools_CubeMap.hlsl
+	entry_point deaultVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/CubeMap/FragmentPrograms/DefaultPS hlsl
+{
+	source GameTools_CubeMap.hlsl
+	entry_point deaultPS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/Caustic/DefaultVS hlsl
+{
+	source GameTools_Caustic.hlsl
+	entry_point deaultVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/Caustic/DefaultPS hlsl
+{
+	source GameTools_Caustic.hlsl
+	entry_point deaultPS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/SoftShadow/VertexPrograms/DefaultVS hlsl
+{
+	source GameTools_SoftShadow.hlsl
+	entry_point deaultVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/SoftShadow/FragmentPrograms/DefaultPS hlsl
+{
+	source GameTools_SoftShadow.hlsl
+	entry_point deaultPS
+	target ps_2_0
+
+} 
+
+fragment_program GameTools/SoftShadow/FragmentPrograms/Default2PS hlsl
+{
+	source GameTools_SoftShadow.hlsl
+	entry_point deault2PS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/CausticSoftShadowVS hlsl
+{
+	source GameTools_CausticSoftShadow.hlsl
+	entry_point deaultVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/CausticSoftShadowPS hlsl
+{
+	source GameTools_CausticSoftShadow.hlsl
+	entry_point deaultPS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/CubeMap/VertexPrograms/LocalizedVS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point LocalizedVS
+	target vs_2_0 
+} 
+
+fragment_program GameTools/CubeMap/FragmentPrograms/LocalizedPS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point LocalizedPS
+	target ps_3_0
+}
+
+vertex_program GameTools/CubeMap/VertexPrograms/LocalizedBumpVS hlsl
+{
+	source GameTools_LocalizedBump_EnvMap.hlsl
+	entry_point LocalizedBumpVS
+	target vs_2_0 
+} 
+
+fragment_program GameTools/CubeMap/FragmentPrograms/LocalizedBumpPS hlsl
+{
+	source GameTools_LocalizedBump_EnvMap.hlsl
+	entry_point LocalizedBumpPS
+	target ps_3_0
+}
+
+
+fragment_program GameTools/PhotonMapCausticPS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point PhotonMapCausticPS
+	target ps_3_0
+}
+
+fragment_program GameTools/PhotonMapSoftShadowPS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point PhotonMapSoftShadowPS
+	target ps_3_0
+}
+
+
+ 
+fragment_program GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point LocalizedMetalPS
+	target ps_3_0
+
+} 
+
+vertex_program GameTools/DistanceVS hlsl
+{
+	source GameTools_Distance.hlsl
+	entry_point DistanceVS
+	target vs_1_1
+} 
+
+fragment_program GameTools/DistancePS hlsl
+{
+	source GameTools_Distance.hlsl
+	entry_point DistancePS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/ShadowMap/DepthVS hlsl
+{
+	source GameTools_DepthShadow.hlsl
+	entry_point hDepthVS
+	target vs_1_1
+} 
+
+fragment_program GameTools/ShadowMap/DepthPS hlsl
+{
+	source GameTools_DepthShadow.hlsl
+	entry_point DepthPS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/ShadowMap/ShadowVS hlsl
+{
+	source GameTools_DepthShadow.hlsl
+	entry_point depthShadowVS
+	target vs_1_1
+} 
+
+fragment_program GameTools/ShadowMap/ShadowPS hlsl
+{
+	source GameTools_DepthShadow.hlsl
+	entry_point depthShadowPS
+	target ps_3_0
+
+} 
+
+vertex_program GameTools/UV_VS hlsl
+{
+	source GameTools_UV.hlsl
+	entry_point UV_VS
+	target vs_2_0
+} 
+
+fragment_program GameTools/UV_PS hlsl
+{
+	source GameTools_UV.hlsl
+	entry_point UV_PS
+	target ps_2_0
+} 
+
+vertex_program GameTools/CauVS hlsl
+{
+	source GameTools_Cau.hlsl
+	entry_point CauVS
+	target vs_3_0
+} 
+
+fragment_program GameTools/CauPS hlsl
+{
+	source GameTools_Cau.hlsl
+	entry_point CauPS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/SpriteVS hlsl
+{
+	source GameTools_Sprite.hlsl
+	entry_point SpriteVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/SpritePS hlsl
+{
+	source GameTools_Sprite.hlsl
+	entry_point SpritePS
+	target ps_2_0
+
+} 
+
+vertex_program GameTools/SBBVS hlsl
+{
+	source GameTools_Sprite.hlsl
+	entry_point SBB_SpriteVS
+	target vs_3_0
+} 
+
+fragment_program GameTools/SBBPS hlsl
+{
+	source GameTools_Sprite.hlsl
+	entry_point SBB_SpritePS
+	target ps_3_0
+
+} 
+
+vertex_program GameTools/SceneCameraDepthVS hlsl
+{
+	source GameTools_Depth.hlsl
+	entry_point cDepthVS
+	target vs_2_0
+} 
+
+fragment_program GameTools/SceneDepthPS hlsl
+{
+	source GameTools_Depth.hlsl
+	entry_point DepthPS
+	target ps_2_0
+} 
+
+vertex_program GameTools/CubeMap/VertexPrograms/ReduceVS hlsl
+{
+	source GameTools_ReduceCubeMap.hlsl
+	entry_point ReduceTextureVS
+	target vs_3_0
+} 
+
+fragment_program GameTools/CubeMap/FragmentPrograms/ReducePS hlsl
+{
+	source GameTools_ReduceCubeMap.hlsl
+	entry_point ReduceTexturePS
+	target ps_3_0
+
+} 
+
+
+vertex_program GameTools/DiffuseVS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point DiffuseVS
+	target vs_3_0
+} 
+
+fragment_program GameTools/DiffusePS hlsl
+{
+	source GameTools_Localized_EnvMap.hlsl
+	entry_point DiffusePS
+	target ps_3_0
+
+} 
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/wheel.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/wheel.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/wheel.material	(revision 1049)
@@ -0,0 +1,109 @@
+
+
+
+material tire1
+{
+receive_shadows off
+
+	technique
+	{
+		pass
+		{			
+			
+			vertex_program_ref bumpmappedVS
+        	{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto world_IT inverse_transpose_world_matrix		    
+        	} 
+			fragment_program_ref bumpmappedPS
+			{ 
+				param_named_auto lightPosition light_position 0 
+				param_named_auto world_IT inverse_transpose_world_matrix
+				param_named ambientColor float4 0.1, 0.1, 0.1 1
+				param_named diffuseColor float4 0.8, 0.8, 0.8 1
+				param_named specularColor float4 0.6, 0.6, 0.6 1
+				param_named shininess float 80
+			} 
+			
+			texture_unit
+			{
+				texture tire.tga
+			}
+			
+			texture_unit
+			{
+				texture tirenormal.dds
+			}
+		}
+	}
+}
+material wheel
+{
+receive_shadows off
+
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		1
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false		
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		1
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false		
+			}
+			
+			RenderTechnique CausticCaster
+			{
+				attenuation	0.5
+				update_all_face		false
+				photonmap_resolution	128
+			}
+			
+		 }
+	  vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+        	{       
+           	 param_named_auto worldViewProj worldviewproj_matrix 
+    	   	 param_named_auto world world_matrix
+			 param_named_auto worldIT inverse_transpose_world_matrix
+	    
+        	} 
+		fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         	{ 
+			param_named_auto cameraPos camera_position
+	    //param_named n float3 0.142 0.124 0.158
+	    //param_named k float3 4.52  3.33 2.32
+	    param_named F0 float3 0.97 0.95 0.9
+	    param_named_auto lightPosition light_position 0 
+			
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Fire.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Fire.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Fire.material	(revision 1049)
@@ -0,0 +1,77 @@
+vertex_program FireVS hlsl
+{
+	source Fire.hlsl
+	entry_point FireVS
+	target vs_2_0 
+} 
+
+fragment_program FirePS hlsl
+{
+	source Fire.hlsl
+	entry_point FirePS
+	target ps_3_0
+}
+
+material Fire
+{ 
+
+   technique 
+   { 
+   	pass 
+      { 
+			IllumTechniques
+			{
+				RenderTechnique Fire
+				{
+					texture_unit_id	1
+				}
+			}
+			
+			lighting off
+			
+			scene_blend src_alpha one
+			//scene_blend src_alpha one_minus_src_alpha
+			depth_write off
+			depth_check off
+			
+			vertex_program_ref FireVS
+			{       
+				param_named_auto worldViewProj worldviewproj_matrix 
+				param_named_auto worldView worldview_matrix
+				param_named_auto Proj projection_matrix
+				param_named_auto width viewport_width 	
+				param_named_auto height viewport_height 			    
+			} 
+			fragment_program_ref  FirePS
+			{ 
+				param_named_auto farplane far_clip_distance	  
+				param_named_auto nearplane near_clip_distance		   	  
+			}
+
+			texture_unit
+			{
+				anim_texture smokealpha.tga 32 2.0
+				//texture flare.png
+			}
+
+			texture_unit
+			{
+				filtering none
+			}
+			
+			texture_unit
+			{
+				texture planck.tga
+			}
+			texture_unit
+			{
+				texture gradient.tga
+			}
+			texture_unit
+			{
+				texture noise.tga
+			}
+
+       }
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/car.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/car.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/car.material	(revision 1049)
@@ -0,0 +1,588 @@
+
+vertex_program LocalizedVS hlsl
+{
+	source CarReflections.hlsl
+	entry_point LocalizedVS
+	target vs_2_0 
+} 
+
+fragment_program MetallicReflector hlsl
+{
+	source CarReflections.hlsl
+	entry_point LocalizedMetalPS
+	target ps_3_0
+}
+
+material body1
+{
+	receive_shadows off
+	technique
+	{
+		pass
+		{
+			
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref MetallicReflector
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named F0 float3 1.0 0.8 0.7
+				param_named phongColor float3 0.5 0.0 0.0
+				param_named_auto lightPosition light_position 0 
+				param_named lastCenter float3 0 0 0
+				param_named reflectivity float 0.16	
+				//param_named reflectivity float 1	
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}		
+		}
+	}
+}
+material windscreen1
+{
+	receive_shadows off
+	technique
+	{
+		pass
+		{			
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				//RenderTechnique CausticCaster
+				//{
+				//	update_all_face		false
+				//	photonmap_resolution	128
+				//}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref MetallicReflector
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named F0 float3 1.0 1.0 1.0
+				param_named phongColor float3 0.02 0.01 0.03
+				param_named_auto lightPosition light_position 0 
+				param_named lastCenter float3 0 0 0
+				param_named reflectivity float 0.15	
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}		
+		}
+	}
+}
+
+vertex_program DiffuseVS hlsl
+{
+	source DiffuseBump.hlsl
+	entry_point DiffuseVS
+	target vs_2_0 
+} 
+
+fragment_program DiffusePS hlsl
+{
+	source DiffuseBump.hlsl
+	entry_point DiffusePS
+	target ps_3_0
+}
+
+material canvas1
+{
+	receive_shadows off
+	technique
+	{
+		pass
+		{			
+			IllumTechniques
+			{
+				RenderTechnique ReducedColorCubeMap
+				{
+					resolution		256
+					reduced_resolution	8
+					
+					update_interval		1
+					texture_unit_id		0
+					distance_calc true 2.0
+					face_angle_calc true 2.0
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		3
+					texture_unit_id		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}		
+				
+			}
+	      
+			vertex_program_ref DiffuseVS
+			{       
+				param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				 param_named_auto world_IT inverse_transpose_world_matrix       
+			} 
+						
+			fragment_program_ref 	DiffusePS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named REDUCED_CUBEMAP_SIZE int 8
+				param_named lastCenter float3 0 0 0	
+				param_named_auto world_IT inverse_transpose_world_matrix
+				param_named_auto lightPosition light_position 0  				
+			} 
+			
+			
+			
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture 
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+			cubic_texture 
+			tex_address_mode clamp
+			colour_op replace
+			}
+			
+			texture_unit
+			{
+			  texture canvas.tga
+			}
+			
+			texture_unit
+			{
+			  texture canvasnormal.dds
+			}
+
+		
+		}
+	}
+}
+material lambert3
+{
+	receive_shadows off
+	technique
+	{
+		pass
+		{
+			//IllumTechniques
+			//{
+			//	RenderTechnique ColorCubeMap
+			//	{
+			//		update_interval		1
+			//		distance_calc false
+			//		face_angle_calc false
+			//		update_all_face		false
+			//	}			
+			//
+			//}
+			
+			//Cube map for reflections and refractions	
+			//texture_unit
+			//{
+			//	colour_op modulate
+			//}
+
+			ambient 0 0 0 1
+			diffuse 0 0 0 1
+			specular 0 0 0 1
+		}
+	}
+}
+material syigetelogumi
+{
+receive_shadows off
+	technique
+	{
+		pass
+		{
+			ambient 0 0 0 1
+			diffuse 0 0 0 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+		}
+	}
+}
+
+fragment_program CarMirrorPS hlsl
+{
+	source CarReflections.hlsl
+	entry_point MirrorPS
+	target ps_3_0
+}
+
+material mirror
+{
+receive_shadows off
+	technique
+	{
+		pass
+		{			
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref CarMirrorPS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named lastCenter float3 0 0 0
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}		
+		}
+	}
+}
+
+fragment_program LampGlassPS hlsl
+{
+	source CarReflections.hlsl
+	entry_point LampGlassPS
+	target ps_3_0
+}
+
+material elsolampabura
+{
+	
+	//transparency_casts_shadows on
+
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		  param_named_auto worldViewProj worldviewproj_matrix 
+    	   		  param_named_auto world world_matrix
+			  param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref LampGlassPS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named lastCenter float3 0 0 0
+				param_named glasColor float4 0.9 0.85 0.95 0.65
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			Cube map of distances
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}		
+
+			scene_blend alpha_blend
+			depth_write off
+
+			ambient 1 1 1 0.5
+			diffuse 1 1 1 0.5
+			specular 0 0 0 0
+			emissive 0 0 0
+
+			
+		}
+	}
+}
+material elsolampabelul
+{
+receive_shadows off
+
+	technique
+	{
+		pass
+		{
+			ambient 0.786016 0.968 0.878464 1
+			diffuse 0.786016 0.968 0.878464 1
+			specular 0 0 0 0
+			emissive 0 0 0
+		}
+	}
+}
+
+material hatsolampa
+{
+receive_shadows off
+transparency_casts_shadows on
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref LampGlassPS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named lastCenter float3 0 0 0
+				param_named glasColor float4 0.9 0.1 0.0 0.7
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+				cubic_texture
+				tex_address_mode clamp
+				colour_op replace
+			}		
+
+			//scene_blend alpha_blend
+			//depth_write off
+		}
+	}
+}
+material hatso_lampa_belso
+{
+receive_shadows off
+
+	technique
+	{
+		pass
+		{
+			ambient 0.1 0.1 0.1 1
+			diffuse 1 1 1 1
+			specular 0 0 0 0
+			emissive 0.2 0.2 0.2
+
+			//texture_unit
+			//{
+			//	texture lampahatul.jpg
+			//}
+		}
+	}
+}
+
+material index
+{
+receive_shadows off
+
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false		
+				}
+				
+			
+			}
+			vertex_program_ref LocalizedVS
+        		{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto worldIT inverse_transpose_world_matrix
+		    
+        		} 
+			fragment_program_ref MetallicReflector
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named F0 float3 2.0 1.0 0.2
+				param_named_auto lightPosition light_position 0 
+				param_named lastCenter float3 0 0 0
+				param_named reflectivity float 0.6	
+			} 
+			
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+				cubic_texture cubemap.jpg combinedUVW
+				tex_address_mode clamp
+				colour_op replace
+			}		
+		}
+	}
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeatCompositor.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeatCompositor.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeatCompositor.material	(revision 1049)
@@ -0,0 +1,39 @@
+fragment_program FireHeatCompositorFP hlsl
+{
+	source Fire.hlsl
+	entry_point FireHeatCompositorPS
+	target ps_3_0
+}
+
+material FireHeatCompositor
+{
+   technique 
+   { 
+      pass 
+      {
+	 vertex_program_ref GameTools/PostProc1_VS
+         {
+       
+         } 
+	 fragment_program_ref FireHeatCompositorFP
+         { 
+			param_named_auto width viewport_width 	
+			param_named_auto height viewport_height 
+		 }
+         texture_unit //scene
+		{
+			//filtering none	
+		}
+		texture_unit
+		{
+			texture ILLUM_FIRE_COLOR_TEXTURE
+		}	
+		texture_unit
+		{
+			texture ILLUM_FIRE_HEAT_TEXTURE
+		}
+		
+      }
+   }
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeat.compositor
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeat.compositor	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/FireHeat.compositor	(revision 1049)
@@ -0,0 +1,25 @@
+compositor FireHeatCompositor
+{
+    technique
+    {
+        texture scene target_width target_height PF_FLOAT16_RGBA
+	
+   		
+        target scene
+        {
+            // Render output from previous compositor (or original scene)
+            input previous
+        }     
+      
+        target_output
+        {
+            input none
+          
+            pass render_quad
+            {
+               material FireHeatCompositor
+               input 0 scene               
+            }
+        }
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/bottle.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/bottle.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/bottle.material	(revision 1049)
@@ -0,0 +1,314 @@
+vertex_program BottleVS hlsl
+{
+	source bottle.hlsl
+	entry_point BottleVS
+	target vs_2_0 
+} 
+
+fragment_program BottlePS hlsl
+{
+	source bottle.hlsl
+	entry_point BottlePS
+	target ps_3_0
+}
+
+fragment_program BottlePhotonMapPS hlsl
+{
+	source bottle.hlsl
+	entry_point BottlePhotonMapPS
+	target ps_3_0
+}
+
+material bottle
+{
+
+transparency_casts_shadows on
+
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique CausticCaster
+				{
+					attenuation 5.0
+					update_all_face		false
+					photonmap_resolution	128
+					photon_map_material BottlePhotonMap
+					caustic_map_material BottleCauMap
+				}
+				
+			}
+	      
+	      
+			vertex_program_ref BottleVS
+			{       
+					param_named_auto worldViewProj worldviewproj_matrix 
+    				param_named_auto world world_matrix 
+				param_named_auto worldIT inverse_transpose_world_matrix
+			} 
+			fragment_program_ref BottlePS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named_auto lightPosition light_position 0
+				param_named color float3 0.65 0.4 0.2
+			} 
+				
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+			}
+
+
+			
+		}
+	}
+}
+
+
+material bottle2
+{
+
+transparency_casts_shadows on
+	technique
+	{
+		pass
+		{
+			IllumTechniques
+			{
+				RenderTechnique ColorCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique DistanceCubeMap
+				{
+					update_interval		1
+					distance_calc false
+					face_angle_calc false
+					update_all_face		false
+				}
+				RenderTechnique CausticCaster
+				{
+					attenuation 8.0
+					update_all_face		false
+					photonmap_resolution	128
+					photon_map_material Bottle2PhotonMap
+					caustic_map_material Bottle2CauMap
+				}
+				
+			}
+	      
+	      
+			vertex_program_ref BottleVS
+			{       
+					param_named_auto worldViewProj worldviewproj_matrix 
+    				param_named_auto world world_matrix 
+				param_named_auto worldIT inverse_transpose_world_matrix
+			} 
+			fragment_program_ref BottlePS
+			{ 
+				param_named_auto cameraPos camera_position
+				param_named_auto lightPosition light_position 0
+				param_named color float3 0.2 0.65 0.2
+			} 
+				
+			//Cube map for reflections and refractions	
+			texture_unit
+			{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+			}
+
+			//Cube map of distances
+			texture_unit
+			{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+			}
+
+
+			
+		}
+	}
+}
+
+
+material BottlePhotonMap
+{ 
+   technique 
+   { 
+
+   	pass 
+      { 
+		 vertex_program_ref BottleVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+			param_named_auto worldIT inverse_transpose_world_matrix    
+         } 
+		 fragment_program_ref  BottlePhotonMapPS
+        { 
+			param_named_auto cameraPos camera_position
+			param_named lastCenter float3 0 0 0
+			
+         }
+         
+         //Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture 
+			filtering none
+			//tex_address_mode clamp			
+		}	
+
+       }
+    }
+}
+
+material Bottle2PhotonMap
+{ 
+   technique 
+   { 
+
+   	pass 
+      { 
+		 vertex_program_ref BottleVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+			param_named_auto worldIT inverse_transpose_world_matrix    
+         } 
+		 fragment_program_ref  BottlePhotonMapPS
+        { 
+			param_named_auto cameraPos camera_position
+			param_named lastCenter float3 0 0 0
+			
+         }
+         
+         //Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture 
+			filtering none
+			//tex_address_mode clamp			
+		}	
+
+       }
+    }
+}
+
+material BottleCauMap
+{ 
+   technique 
+   { 
+   	pass 
+      
+		cull_hardware none
+		cull_software none
+		lighting off
+		scene_blend add
+		scene_blend src_alpha one
+		depth_write off
+		point_sprites on
+
+		vertex_program_ref GameTools/CauVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+            param_named_auto worldView worldview_matrix
+			param_named_auto Proj projection_matrix
+			param_named_auto resolution viewport_width
+			param_named CauSpriteSize float 11.0	    
+         } 
+		fragment_program_ref  GameTools/CauPS
+        { 
+			param_named CauSpriteIntens float 0.11
+			param_named color float3 0.65 0.4 0.2
+		 }
+         
+	    texture_unit
+		{
+			vertex_texture true
+			texture flare.png
+		}
+		texture_unit
+		{
+			texture PowerOfPhotonHitTexel.dds
+		}
+
+       }
+    }
+}
+
+material Bottle2CauMap
+{ 
+   technique 
+   { 
+   	pass 
+      
+		cull_hardware none
+		cull_software none
+		lighting off
+		scene_blend add
+		scene_blend src_alpha one
+		depth_write off
+		point_sprites on
+
+		vertex_program_ref GameTools/CauVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+            param_named_auto worldView worldview_matrix
+			param_named_auto Proj projection_matrix
+			param_named_auto resolution viewport_width
+			param_named CauSpriteSize float 11.0	    
+         } 
+		fragment_program_ref  GameTools/CauPS
+        { 
+			param_named CauSpriteIntens float 0.10
+			param_named color float3 0.2 0.65 0.2
+		 }
+         
+	    texture_unit
+		{
+			vertex_texture true
+			texture flare.png
+		}
+		texture_unit
+		{
+			texture PowerOfPhotonHitTexel.dds
+		}
+
+       }
+    }
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools.material	(revision 1049)
@@ -0,0 +1,1063 @@
+material HelpScreen
+{
+	technique
+	{
+		pass
+		{
+			lighting off
+			
+			ambient 1 1 1 0.2
+			diffuse 1 1 1 0.2
+			specular 1 1 1 0.2
+			emissive 1 1 1 0.2
+			
+			texture_unit
+			{
+				texture helpscreen.tga
+			}
+			
+			scene_blend alpha_blend
+			depth_write off
+			depth_check off
+		}
+	}
+}
+
+material GameTools/Standard
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.1 0.11 0.15
+			diffuse 0.8 0.9 1.0
+		}
+	}
+}
+
+
+material Examples/MorningSkyBox
+{
+	technique
+	{
+		pass
+		{
+			lighting off
+			depth_write off
+
+			texture_unit
+			{
+				cubic_texture cloudy_noon.jpg separateUV
+				tex_address_mode clamp
+			}
+		}
+	}
+}
+
+material GameTools/Rockwall
+{
+	technique
+	{
+		pass
+		{
+			lighting off
+			texture_unit
+			{
+				texture rockwall.tga
+				env_map cubic_normal
+				//vertex_texture true
+			}
+		}
+	}
+}
+
+material GameTools/PostProcBlack
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/PostProc_Black
+         { 
+	
+         }
+       }
+    }
+}
+material GameTools/PostProc1
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/PostProc1_PS
+         { 
+	
+         }
+        texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+      }
+   }
+}
+
+material GameTools/GlowCut
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/GlowCut_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        
+         }
+        texture_unit
+		 {
+		    //filtering none
+			texture rockwall.tga		
+		 }
+		 texture_unit
+		 {
+		    //filtering none
+			texture rockwall.tga		
+		 }	
+      }
+   }
+}
+
+material GameTools/Luminance
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/Luminance_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        
+         }
+        texture_unit
+		 {
+		    //filtering none
+			texture rockwall.tga		
+		 }		 
+		
+      }
+   }
+}
+
+
+
+material GameTools/GlowBlurH
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/GlowBlurH_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        param_named Stretch float 3.2
+         }
+        texture_unit
+		 {
+		    tex_address_mode mirror 
+			texture rockwall.tga		
+		 }
+		 	
+      }
+   }
+}
+
+material GameTools/GlowBlurV
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/GlowBlurV_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        param_named Stretch float 3.2
+         }
+        texture_unit
+		 {
+		    tex_address_mode mirror 
+			texture rockwall.tga		
+		 }		 
+      }
+   }
+}
+
+material GameTools/TextureCopy
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/TextureCopy_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        
+         }
+        texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }		 
+      }
+   }
+}
+    
+material GameTools/GlowAdd
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/GlowAdd_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        
+         }
+        texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+		  texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+      }
+   }
+}
+
+material GameTools/ToneMap
+{
+	technique 
+   { 
+   	pass 
+      {
+		vertex_program_ref GameTools/PostProc1_VS
+         {       
+         } 
+		fragment_program_ref GameTools/ToneMap_PS
+         { 
+			param_named_auto width viewport_width 	
+	        param_named_auto height viewport_height 
+	        param_named Gain float 0.5
+         }
+        texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+		  texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+		  texture_unit
+		 {
+		   // filtering none
+			texture rockwall.tga		
+		 }
+      }
+   }
+}
+
+material GameTools/UVShader
+{ 
+   technique 
+   { 
+   	pass 
+      { 
+		vertex_program_ref GameTools/UV_VS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix
+         } 
+		fragment_program_ref GameTools/UV_PS
+         { 
+			param_named_auto ID custom 0
+         }
+        
+
+       }
+    }
+}
+
+
+material GameTools/Caustic/Default 
+{ 
+
+   technique 
+   { 
+       pass 
+       { 
+		lighting off		
+
+		vertex_program_ref GameTools/Caustic/DefaultVS
+		{       
+         param_named_auto worldViewProj worldviewproj_matrix
+		 param_named_auto world world_matrix 
+		} 
+		fragment_program_ref GameTools/Caustic/DefaultPS
+		{ 
+		 param_named cubeMapCameraPosition float3 0 0 0	 
+		} 
+		
+	    texture_unit
+		{
+			filtering none				
+		}
+			 
+		texture_unit
+		{
+			//filtering linear linear linear			
+		}
+	}
+    }
+}
+
+material GameTools/SoftShadowReciever/Default 
+{ 
+
+   technique 
+   { 
+       pass 
+       { 
+		lighting off		
+
+		vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS
+		{       
+         param_named_auto worldViewProj worldviewproj_matrix
+		 param_named_auto world world_matrix 
+		} 
+		fragment_program_ref GameTools/SoftShadow/FragmentPrograms/DefaultPS
+		{ 
+		 param_named cubeMapCameraPosition float3 0 0 0	 
+		} 
+		
+	    texture_unit
+		{
+			texture rockwall.tga
+			//texture cubbe.jpg
+			
+		}
+			 
+		texture_unit
+		{
+			//filtering linear linear linear
+			cubic_texture cubemap.jpg combinedUVW
+			env_map cubic_reflection		
+		}
+	}
+    }
+}
+
+material GameTools/SoftShadowReciever/Default2 
+{ 
+
+   technique 
+   { 
+       pass 
+       { 
+		lighting off		
+
+		vertex_program_ref GameTools/SoftShadow/VertexPrograms/DefaultVS
+		{       
+         param_named_auto world_IT inverse_transpose_world_matrix  
+		param_named_auto worldViewProj worldviewproj_matrix
+		 param_named_auto world world_matrix 
+		} 
+		fragment_program_ref GameTools/SoftShadow/FragmentPrograms/Default2PS
+		{ 
+		 param_named cubeMapCameraPosition float3 0 0 0	 
+		 param_named_auto cameraPos camera_position
+		 param_named_auto lightPosition light_position 0 
+		} 		
+	    
+		texture_unit
+		{
+			//filtering linear linear linear
+			cubic_texture cubemap.jpg combinedUVW
+			env_map cubic_reflection		
+		}
+	}
+    }
+}
+
+material GameTools/CausticSoftShadowReciever
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+		lighting off		
+
+		vertex_program_ref GameTools/CausticSoftShadowVS
+		{       
+         param_named_auto world_IT worldviewproj_matrix  
+		 param_named_auto worldViewProj worldviewproj_matrix
+		 param_named_auto world world_matrix 
+		} 
+		fragment_program_ref GameTools/CausticSoftShadowPS
+		{ 
+		 //param_named_auto world_IT inverse_worldview_matrix  
+		 param_named cubeMapCameraPosition float3 0 0 0	 
+		} 
+		
+	    texture_unit
+		{
+			//texture rockwall.tga
+			texture cubbe.jpg			
+		}
+			 
+		//texture_unit //caustic cubemap
+		//{
+		//	//filtering linear linear linear
+		//	cubic_texture cubemap.jpg combinedUVW			
+		//}
+		
+		//texture_unit  //softshadow cubemap
+		//{
+		//	//filtering linear linear linear
+		//	cubic_texture cubemap.jpg combinedUVW
+		//}
+		
+		texture_unit/bump
+		{
+			texture falnormal.dds
+		}
+	}
+  }
+}
+
+
+material GameTools/CubeMap/Default 
+{ 
+
+   technique 
+   { 
+       pass 
+       { 
+		lighting off
+	
+
+
+		vertex_program_ref GameTools/CubeMap/VertexPrograms/DefaultVS
+		 {       
+		     param_named_auto worldViewProj worldviewproj_matrix
+		    param_named_auto world world_matrix 
+		 } 
+		 fragment_program_ref GameTools/CubeMap/FragmentPrograms/DefaultPS
+		 { 
+			param_named_auto cameraPos camera_position	 
+		 } 
+			
+		//Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture cubemap.jpg combinedUVW	
+			//env_map cubic_reflection	
+		}
+	 
+	
+	  }
+    }
+}
+
+
+
+material GameTools/CubeMap/Reduce
+{ 
+
+   technique 
+   { 
+       pass 
+       { 
+       //depth_check off
+	   lighting off
+	
+	    vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS
+         {       
+           // param_named_auto worldViewProj worldviewproj_matrix
+	       // param_named_auto world world_matrix 
+         } 
+	 fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS
+         { 
+		//param_named_auto cameraPos camera_position	 
+         param_named nFace int 0
+         param_named CUBEMAP_SIZE int 256
+         //param_named RATE int 2
+         
+        } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   filtering point point point
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	  // env_map cubic_reflection
+	   colour_op modulate
+	 }
+
+
+	}
+    }
+}
+
+
+
+material GameTools/CubeMap/Localized 
+{ 
+
+   technique 
+   { 
+   
+      pass 
+      { 
+		IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		0
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		0
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false
+			}
+			RenderTechnique CausticCaster
+			{
+				update_all_face		false
+				photonmap_resolution	128
+			}
+			
+		 }
+      
+      
+	 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+     {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix 
+	    param_named_auto worldIT inverse_transpose_world_matrix
+     } 
+	 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedPS
+     { 
+		param_named_auto cameraPos camera_position
+		param_named_auto lightPosition light_position 0
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+
+	}
+    }
+}
+
+material GameTools/CubeMap/LocalizedBump 
+{ 
+
+   technique 
+   { 
+   
+      pass 
+      { 
+	 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedBumpVS
+     {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix 
+     } 
+	 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedBumpPS
+     { 
+		param_named_auto cameraPos camera_position
+		param_named_auto lightPosition light_position 0
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+	 
+	 //normal map
+	 texture_unit
+	 {
+	   texture atheneNormalMapNew.dds
+		//texture atheneNormalMap.png
+	 }
+	 texture_unit
+	 {
+	   texture atheneDisplacementMap.bmp
+	 }
+
+
+	}
+    }
+}
+
+material GameTools/CubeMap/Diffuse 
+{ 
+   technique 
+   { 
+      pass 
+      { 
+		
+		IllumTechniques
+		{
+			RenderTechnique ReducedColorCubeMap
+			{
+				resolution			256
+				reduced_resolution	8
+				
+				update_interval		3
+				texture_unit_id		0
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		3
+				texture_unit_id		1
+				distance_calc false
+				face_angle_calc false
+				update_all_face		false
+			}		
+			
+		}
+      
+		vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+		{       
+			param_named_auto worldViewProj worldviewproj_matrix 
+    	   	 param_named_auto world world_matrix
+			 param_named_auto worldIT inverse_transpose_world_matrix        
+		} 
+		//fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+        // { 
+		//	param_named_auto cameraPos camera_position
+			//param_named n float3 0.21 0.96 1.17
+			//param_named k float3 4.16 2.57 2.32
+		//	param_named F0 float3 0.95 0.63 0.54
+		//	param_named_auto lightPosition light_position 0 
+			
+		//} 
+				
+		fragment_program_ref 	GameTools/DiffusePS
+		{ 
+			param_named_auto cameraPos camera_position
+			param_named REDUCED_CUBEMAP_SIZE int 8
+			param_named lastCenter float3 0 0 0		
+		} 
+		
+		//Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture 
+			tex_address_mode clamp
+			colour_op replace
+		}
+
+		//Cube map of distances
+		texture_unit
+		 {
+		   cubic_texture 
+		   tex_address_mode clamp
+		   colour_op replace
+		 }
+	 }
+   }
+}
+
+
+
+material GameTools/CubeMap/LocalizedMetal 
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+	 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+	    
+         } 
+	 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         { 
+	    param_named_auto cameraPos camera_position
+	    param_named n float3 0.21 0.96 1.17
+	    param_named k float3 4.16 2.57 2.32
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+
+	}
+    }
+}
+
+
+material GameTools/DistanceShader
+{ 
+
+   technique 
+   { 
+   	pass 
+      { 
+	 vertex_program_ref GameTools/DistanceVS
+         {       
+            param_named_auto worldView worldview_matrix
+            param_named_auto worldViewProj worldviewproj_matrix
+         } 
+	 fragment_program_ref  GameTools/DistancePS
+         { 
+		 
+         }
+
+       }
+    }
+}
+
+
+material GameTools/PhotonMapCaustic
+{ 
+   technique 
+   { 
+
+   	pass 
+      { 
+		 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+	    param_named_auto worldIT inverse_transpose_world_matrix    
+         } 
+		 fragment_program_ref  GameTools/PhotonMapCausticPS
+        { 
+			param_named_auto cameraPos camera_position
+			param_named lastCenter float3 0 0 0
+         }
+         
+         //Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture 
+			filtering none
+			//tex_address_mode clamp			
+		}	
+
+       }
+    }
+}
+
+
+material GameTools/PhotonMapSoftShadow
+{ 
+   technique 
+   { 
+   	pass 
+      { 
+		 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix	    
+         } 
+		 fragment_program_ref  GameTools/PhotonMapSoftShadowPS
+         { 
+			param_named_auto cameraPos camera_position
+			param_named lastCenter float3 0 0 0
+         }
+         
+         //Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+			env_map cubic_reflection
+		}
+
+		//Cube map of distances
+		texture_unit
+		{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+		}
+       }
+    }
+}
+
+
+
+
+material GameTools/SceneCameraDepthShader
+{ 
+
+   technique 
+   { 
+      scene_blend none
+
+      pass 
+      { 
+	 vertex_program_ref GameTools/SceneCameraDepthVS
+         {       
+            param_named_auto worldView worldview_matrix
+            param_named_auto worldViewProj worldviewproj_matrix
+	    param_named_auto farplane far_clip_distance	 
+         } 
+	 fragment_program_ref  GameTools/SceneDepthPS
+         { 
+	   
+         }
+
+       }
+    }
+}
+
+material GameTools/ShadowMapDepth
+{ 
+
+   technique 
+   { 
+      scene_blend none
+
+      pass 
+      { 
+		cull_hardware none //anticlockwise
+		
+		vertex_program_ref GameTools/ShadowMap/DepthVS
+        {       
+            param_named_auto worldView worldview_matrix
+            param_named_auto worldViewProj worldviewproj_matrix
+            
+	    } 
+		fragment_program_ref  GameTools/ShadowMap/DepthPS
+        { 
+        
+			
+        }
+        
+       }
+    }
+}
+
+material GameTools/Cau
+{ 
+   technique 
+   { 
+   	pass 
+      
+		cull_hardware none
+		cull_software none
+		lighting off
+		scene_blend add
+		scene_blend src_alpha one
+		depth_write off
+		point_sprites on
+
+		vertex_program_ref GameTools/CauVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+            param_named_auto worldView worldview_matrix
+			param_named_auto Proj projection_matrix
+			param_named_auto resolution viewport_width
+			param_named CauSpriteSize float 15.0	    
+         } 
+		fragment_program_ref  GameTools/CauPS
+        { 
+			param_named CauSpriteIntens float 0.09
+			param_named color float3 1 1 1
+		 }
+         
+	    texture_unit
+		{
+			vertex_texture true
+			texture flare.png
+		}
+		texture_unit
+		{
+			texture PowerOfPhotonHitTexel.dds
+		}
+
+       }
+    }
+}
+
+material GameTools/SpriteShader
+{ 
+
+   technique 
+   { 
+   	pass 
+      { 
+      
+	cull_hardware none
+	cull_software none
+	lighting off
+	scene_blend add
+	depth_write off
+
+	 vertex_program_ref GameTools/SpriteVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+            param_named_auto worldView worldview_matrix
+			param_named_auto Proj projection_matrix	    
+         } 
+	 fragment_program_ref  GameTools/SpritePS
+         { 
+		 
+         }
+
+	 texture_unit
+	 {
+	  texture flare.png
+	 }
+
+       }
+    }
+}
+
+
+material GameTools/SBB
+{ 
+
+   technique 
+   { 
+   	pass 
+      { 
+			IllumTechniques
+			{
+				RenderTechnique SphericalBillboard
+				{
+					texture_unit_id	1
+				}
+			}
+			
+			lighting off
+			
+			scene_blend src_alpha one
+			//scene_blend src_alpha one_minus_src_alpha
+			depth_write off
+			depth_check off
+			
+			vertex_program_ref GameTools/SBBVS
+			{       
+				param_named_auto worldViewProj worldviewproj_matrix 
+				param_named_auto worldView worldview_matrix
+				param_named_auto Proj projection_matrix
+				param_named_auto width viewport_width 	
+				param_named_auto height viewport_height 			    
+			} 
+			fragment_program_ref  GameTools/SBBPS
+			{ 
+				param_named_auto farplane far_clip_distance	  
+				param_named_auto nearplane near_clip_distance		   	  
+			}
+
+			texture_unit
+			{
+				anim_texture smokealpha.tga 32 2.0
+				//texture flare.png
+			}
+
+			texture_unit
+			{
+				filtering none
+			}
+			
+			texture_unit
+			{
+				texture planck.tga
+			}
+			texture_unit
+			{
+				texture gradient.tga
+			}
+
+       }
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Ogre.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Ogre.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/Ogre.material	(revision 1049)
@@ -0,0 +1,119 @@
+
+material Ogre/Earring
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0
+			diffuse 1 1 0
+
+			texture_unit
+			{
+				texture spheremap.png
+				colour_op_ex add src_texture src_current
+				colour_op_multipass_fallback one one
+				env_map spherical
+			}
+		}
+	}
+}
+material Ogre/Skin
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.7 0.7 0.7
+			cull_hardware none
+
+			texture_unit
+			{
+				texture GreenSkin.jpg
+				tex_address_mode mirror
+			}
+		}
+	}
+}
+material Ogre/Tusks
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.4
+			diffuse 1 1 0.8
+
+			texture_unit
+			{
+				texture dirt01.jpg
+				colour_op_ex add src_texture src_current
+				colour_op_multipass_fallback one one
+			}
+		}
+	}
+}
+material Ogre/Eyes
+{
+	technique
+	{
+		pass
+		{
+
+			texture_unit
+			{
+				texture WeirdEye.png
+			}
+		}
+	}
+}
+material Cursor/default
+{
+	technique
+	{
+		pass
+		{
+			scene_blend alpha_blend
+
+			texture_unit
+			{
+				texture cursor.png
+				tex_address_mode clamp
+			}
+		}
+	}
+}
+material Core/StatsBlockBorder/Down
+{
+	technique
+	{
+		pass
+		{
+			lighting off
+			scene_blend alpha_blend
+			depth_check off
+
+			texture_unit
+			{
+				texture ogreborder.png
+			}
+		}
+	}
+}
+material Core/StatsBlockBorder/Up
+{
+	technique
+	{
+		pass
+		{
+			lighting off
+			scene_blend alpha_blend
+			depth_check off
+
+			texture_unit
+			{
+				texture ogreborderUp.png
+			}
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_ToneMap.compositor
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_ToneMap.compositor	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/GameTools_ToneMap.compositor	(revision 1049)
@@ -0,0 +1,57 @@
+compositor GameTools/ToneMap
+{
+    technique
+    {
+        texture scene target_width target_height PF_FLOAT16_RGBA
+		texture luminance 256 256 PF_FLOAT16_RGBA		        
+        texture rt0 256 256 PF_FLOAT16_RGBA        
+        texture rt1 256 256 PF_FLOAT16_RGBA
+        
+        target scene
+        {
+            // Render output from previous compositor (or original scene)
+            input previous
+        }
+        target luminance
+        {
+            input none
+           
+            pass render_quad
+            {
+                 material GameTools/Luminance
+                input 0 scene
+            }
+        }
+        target rt0
+        {
+            input none
+            
+            pass render_quad
+            {
+                material GameTools/GlowBlurV
+                input 0 luminance
+           }
+        } 
+        target rt1
+        {
+            input none
+            pass render_quad
+            {
+               material GameTools/GlowBlurH
+                input 0 rt0			    
+            }
+		} 
+		
+        target_output
+        {
+            input none
+          pass render_quad
+            {
+               material GameTools/ToneMap
+                input 0 scene
+                input 1 rt1
+				input 2 luminance				
+            }
+        }
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/EnvMetals.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/EnvMetals.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/EnvMetals.material	(revision 1049)
@@ -0,0 +1,257 @@
+
+material EnvMetals/Copper 
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+	
+		IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		1
+				distance_calc true
+				face_angle_calc true
+				update_all_face		false
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		1
+				distance_calc true
+				face_angle_calc true
+				update_all_face		false		
+			}
+			
+		
+		 }
+		 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+        	{       
+           	 param_named_auto worldViewProj worldviewproj_matrix 
+    	   	 param_named_auto world world_matrix
+			 param_named_auto worldIT inverse_transpose_world_matrix
+	    
+        	} 
+		 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         { 
+			param_named_auto cameraPos camera_position
+			//param_named n float3 0.21 0.96 1.17
+			//param_named k float3 4.16 2.57 2.32
+			param_named F0 float3 0.95 0.63 0.54
+			param_named_auto lightPosition light_position 0 
+			
+		} 
+		
+		//Cube map for reflections and refractions	
+		texture_unit
+		{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+		}
+
+		//Cube map of distances
+		texture_unit
+		{
+			cubic_texture cubemap.jpg combinedUVW
+			tex_address_mode clamp
+			colour_op replace
+		}
+	  }
+    }
+}
+
+
+material EnvMetals/Gold 
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+      
+      IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		1
+				distance_calc true 1.5
+				face_angle_calc true 1.5		
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		1
+				distance_calc true 1.5
+				face_angle_calc true 1.5		
+			}
+			
+		 }
+	 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+	    
+         } 
+	 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         { 
+	    param_named_auto cameraPos camera_position
+	    //param_named n float3 0.16 0.35 1.6
+	    //param_named k float3 3.98 2.71 1.92
+	    param_named F0 float3 0.96 0.85 0.39
+	    param_named_auto lightPosition light_position 0 
+			
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+
+	}
+    }
+}
+
+
+material EnvMetals/Silver
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+      
+		IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		3
+				distance_calc true 1.5
+				face_angle_calc true 1.5		
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		3
+				distance_calc true 1.5
+				face_angle_calc true 1.5		
+			}
+			
+			RenderTechnique CausticCaster
+			{
+				update_all_face		false
+				photonmap_resolution	128
+			}
+			
+		 }
+	  vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+        	{       
+           	 param_named_auto worldViewProj worldviewproj_matrix 
+    	   	 param_named_auto world world_matrix
+			 param_named_auto worldIT inverse_transpose_world_matrix
+	    
+        	} 
+		fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         	{ 
+			param_named_auto cameraPos camera_position
+	    //param_named n float3 0.142 0.124 0.158
+	    //param_named k float3 4.52  3.33 2.32
+	    param_named F0 float3 0.97 0.95 0.9
+	    param_named_auto lightPosition light_position 0 
+			
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+
+	}
+    }
+}
+
+
+material EnvMetals/Alu
+{ 
+
+   technique 
+   { 
+      pass 
+      { 
+      
+		IllumTechniques
+		{
+			RenderTechnique ColorCubeMap
+			{
+				update_interval		0
+				distance_calc true 1.5
+				face_angle_calc true 3.5		
+			}
+			RenderTechnique DistanceCubeMap
+			{
+				update_interval		0
+				distance_calc true 1.5
+				face_angle_calc true 3.5		
+			}
+			
+		 }
+	
+	 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
+         {       
+            param_named_auto worldViewProj worldviewproj_matrix 
+    	    param_named_auto world world_matrix
+	    
+         } 
+	 fragment_program_ref 	GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
+         { 
+	    param_named_auto cameraPos camera_position
+	    //param_named n float3 1.83 0.96 0.577
+	    //param_named k float3 8.31 6.69 5.288
+	    param_named F0 float3 0.9 0.92 0.92
+	    param_named_auto lightPosition light_position 0 
+			
+	 } 
+		
+	 //Cube map for reflections and refractions	
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+	//Cube map of distances
+	 texture_unit
+	 {
+	   cubic_texture cubemap.jpg combinedUVW
+	   tex_address_mode clamp
+	   colour_op replace
+	 }
+
+
+	}
+    }
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/explosive.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/explosive.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/explosive.material	(revision 1049)
@@ -0,0 +1,67 @@
+material tartaly
+{
+	technique
+	{
+		pass
+		{	
+		
+			vertex_program_ref bumpmappedVS
+        	{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named world_IT matrix4x4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 	    
+        	} 
+			fragment_program_ref bumpmappedPS
+			{ 
+				param_named_auto lightPosition light_position 0 
+				param_named world_IT matrix4x4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
+				param_named ambientColor float4 0.2 0.2 0.2 1
+				param_named diffuseColor float4 1 1 1 1
+				param_named specularColor float4 1 1 1 1
+				param_named shininess float 2
+			} 
+					
+			texture_unit
+			{
+				texture explosive.tga
+			}
+			texture_unit
+			{
+				texture explosivenormal.dds
+			}
+		}		
+	}
+}
+material tartalytarto
+{
+	technique
+	{
+		pass
+		{
+			vertex_program_ref bumpmappedVS
+        	{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named world_IT matrix4x4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 	    
+        	} 
+			fragment_program_ref bumpmappedPS
+			{ 
+				param_named_auto lightPosition light_position 0 
+				param_named world_IT matrix4x4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
+				param_named ambientColor float4 0.2 0.2 0.2 1
+				param_named diffuseColor float4 1 1 1 1
+				param_named specularColor float4 1 1 1 1
+				param_named shininess float 2
+			} 
+					
+			texture_unit
+			{
+				texture metal.jpg
+			}
+			texture_unit
+			{
+				texture metalnormal.dds
+			}
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/scene1.material
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/scene1.material	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/scripts/scene1.material	(revision 1049)
@@ -0,0 +1,267 @@
+material padlo
+{
+	technique
+	{
+		pass
+		{
+			ambient 0 0 0 1
+			diffuse 1.0 1.0 1.0 1
+			specular 0 0 0 0
+			emissive 0 0 0
+			
+			IllumTechniques
+			{
+				RenderTechnique DepthShadowReciever
+				{
+					
+				}
+				RenderTechnique CausticReciever
+				{
+				 max_caster_count	10	
+				}
+			}
+			
+			vertex_program_ref bumpmappedVS
+        	{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto world_IT inverse_transpose_world_matrix		    
+        	} 
+			fragment_program_ref bumpmappedDoubleTexturePS
+			{ 
+				param_named_auto lightPosition light_position 0 
+				param_named_auto world_IT inverse_transpose_world_matrix
+				param_named ambientColor float4 0.0 0.0 0.0 1
+				param_named diffuseColor float4 1.0 1.0 1.0 1
+				param_named specularColor float4 0.2 0.2 0.2 1
+				param_named shininess float 1
+				param_named texUVmult float2 80 120
+			} 
+			
+			texture_unit
+			{
+				texture asphalt.jpg				
+			}
+			texture_unit
+			{
+				texture talajdetail.jpg				
+			}
+			texture_unit
+			{
+				texture scenetalajnormal.dds				
+			}
+		}
+	}
+}
+material fal
+{
+	technique
+	{
+		pass
+		{		
+			
+			vertex_program_ref bumpmappedVS
+        	{       
+           		param_named_auto worldViewProj worldviewproj_matrix 
+    	   		param_named_auto world world_matrix
+				param_named_auto world_IT inverse_transpose_world_matrix		    
+        	} 
+			fragment_program_ref bumpmappedPS
+			{ 
+				param_named_auto lightPosition light_position 0 
+				param_named_auto world_IT inverse_transpose_world_matrix
+				param_named ambientColor float4 0.35, 0.35, 0.35 1
+				param_named diffuseColor float4 1.0, 1.0, 1.0 1
+				param_named specularColor float4 0.3, 0.3, 0.3 1
+				param_named shininess float 10
+			} 
+
+			texture_unit
+			{
+				texture kekfallow1.jpg				
+			}
+			
+			texture_unit
+			{
+				texture kekfalnormal.dds		
+			}
+		}
+	}
+}
+material oszlop
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.2 0 0 1
+			diffuse 1 0 0 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+		}
+	}
+}
+material fabric3
+{
+	technique
+	{
+		pass
+		{
+			cull_hardware none
+			ambient 0.8 0.8 0.8 0.94
+			diffuse 1 1 1 0.94
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture fabric3.jpg
+				tex_coord_set 0
+				colour_op modulate
+			}		
+		}
+	}
+}
+material ponyva2
+{
+	technique
+	{
+		pass
+		{
+			cull_hardware none
+			ambient 0.8 0.8 0.8 0.8
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture fabric2.jpg
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material ponyva1
+{
+	technique
+	{
+		pass
+		{
+			cull_hardware none
+			ambient 0.8 0.8 0.8 0.8
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture fabric1.jpg
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material fabric4
+{
+	technique
+	{
+		pass
+		{
+			cull_hardware none
+			ambient 0.8 0.8 0.8 0.8
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture fabric4.jpg
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material korl2
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.5 0.5
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture logo4.tga
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material korl1
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.5 0.5
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture logo3.tga
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material korl3
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.5 0.5
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture logo1.tga
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
+material korl4
+{
+	technique
+	{
+		pass
+		{
+			ambient 0.5 0.5 0.5 0.5
+			diffuse 1 1 1 1
+			specular 0.5 0.5 0.5 20
+			emissive 0 0 0
+
+			texture_unit
+			{
+				texture logo2.tga
+				tex_coord_set 0
+				colour_op modulate
+			}
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Depth.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Depth.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Depth.hlsl	(revision 1049)
@@ -0,0 +1,35 @@
+float farplane = 100.0;
+float nearplane = 0.1;
+
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 Position	: TEXCOORD0;
+};
+
+VS_OUT hDepthVS(float4 position : POSITION,	
+		uniform float4x4 worldView,
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.Position = ( OUT.hPosition / OUT.hPosition.w + 1) / 2.0;
+  return OUT;
+}
+
+VS_OUT cDepthVS(float4 position : POSITION,	
+		uniform float4x4 worldView,
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.Position = mul(worldView, position);
+  OUT.Position.z *= -1.0;
+  return OUT;
+}
+
+
+float4 DepthPS(VS_OUT IN ):COLOR
+{
+	return float4(IN.Position.z, IN.Position.z, IN.Position.z, 1);	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_ReduceCubeMap.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_ReduceCubeMap.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_ReduceCubeMap.hlsl	(revision 1049)
@@ -0,0 +1,59 @@
+
+int CUBEMAP_SIZE = 256;
+int RATE = 32;
+int nFace;
+
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, coord.z) );
+	return color;
+}
+
+
+struct VS_INPUT {           // vertex shader input
+    float4 Position : POSITION;
+};
+
+struct VS_OUTPUT {          // vertex shader output, pixel shader input
+    float4 hPosition : POSITION;
+    float2 Position  : TEXCOORD0;
+};
+
+VS_OUTPUT ReduceTextureVS(VS_INPUT IN) {
+	VS_OUTPUT OUT;
+    OUT.hPosition = IN.Position;
+    OUT.Position = IN.Position.xy;
+    return OUT;
+}
+
+float4 ReduceTexturePS(VS_OUTPUT IN,
+						uniform samplerCUBE EnvironmentMapSampler : register(s0) ) : COLOR
+{  
+	RATE = 32;
+	CUBEMAP_SIZE = 256;
+	
+    float4 color = 0;
+    // color += texCUBE( EnvironmentMapSampler, Tex );
+    float3 dir;
+  
+   for (int i = 0; i < RATE; i++)
+     for (int j = 0; j < RATE; j++)
+    {
+		float2 pos;
+		pos.x = IN.Position.x + (2*i + 1)/(float)CUBEMAP_SIZE;
+		pos.y = IN.Position.y - (2*j + 1)/(float)CUBEMAP_SIZE;	// y=-u
+
+		// "scrambling"
+		if (nFace == 0)	dir = float3(1, pos.y, -pos.x);
+		if (nFace == 1) dir = float3(-1, pos.y, pos.x);
+		if (nFace == 2) dir = float3(pos.x, 1, -pos.y);
+		if (nFace == 3) dir = float3(pos.x, -1, pos.y);
+		if (nFace == 4) dir = float3(pos.xy, 1);
+		if (nFace == 5) dir = float3(-pos.x, pos.y,-1);
+
+		color += readCubeMap( EnvironmentMapSampler, dir);
+    }
+    //return float4(IN.Position.xy,1,1);
+	return color / (RATE*RATE);	
+	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Sprite.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Sprite.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Sprite.hlsl	(revision 1049)
@@ -0,0 +1,145 @@
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 texCoord		: TEXCOORD0;
+	float4 color		: COLOR0;
+};
+
+VS_OUT SpriteVS(float4 position : POSITION,	
+		float4 texCoord : TEXCOORD0,
+		float4 color 	: COLOR0,
+		uniform float4x4 worldView,
+		uniform float4x4 Proj,
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT OUT;
+
+   //texCoord.y = 1.0 - texCoord.y;
+   float2 offset = texCoord.zw;
+   float4 cPosition = mul(worldView, position);
+   cPosition.xy += offset;
+   
+	OUT.hPosition = mul( Proj, cPosition );
+   OUT.texCoord = texCoord;
+   OUT.color = float4(offset,1,1.0);
+
+
+  return OUT;
+}
+
+
+float4 SpritePS(VS_OUT IN ,
+		uniform sampler2D colorTexture : register(s0)):COLOR
+{
+
+	return tex2D( colorTexture, IN.texCoord.xy) * IN.color;
+}
+
+
+
+
+
+
+//////////-----------------------------------------
+
+
+float farplane = 1000.0; //far plane
+float nearplane = 0.1; //far plane
+float width = 800;
+float height = 600;
+
+struct SBB_VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 texCoord		: TEXCOORD0;
+	float3 P		: TEXCOORD1;
+	float3 Q		: TEXCOORD2;
+	float r			: TEXCOORD3;
+	float2 screenCoord	: TEXCOORD4;	
+	float4 color		: COLOR0;
+};
+
+SBB_VS_OUT SBB_SpriteVS (float4 position : POSITION,	
+		float4 texCoord : TEXCOORD0,
+		float4 color 	: COLOR,
+		uniform float4x4 worldView,
+		uniform float4x4 Proj,
+		uniform float4x4 worldViewProj)
+{
+	SBB_VS_OUT OUT;
+  
+	float2 offset = texCoord.zw;
+	float4 cPosition;   
+	float4 wPosition = position;    
+	cPosition = mul(worldView, wPosition);	
+	OUT.P = cPosition.xyz;
+	OUT.P.z = - 1 * OUT.P.z;
+	cPosition.xy += offset;				
+	OUT.Q = cPosition.xyz;	
+	OUT.Q.z = OUT.P.z;
+	OUT.r = abs(texCoord.z);		
+
+   /*texCoord.y = 1.0 - texCoord.y;
+   float2 offset = texCoord.xy * 2.0 - 1.0;
+   float4 cPosition = mul(worldView, position);
+   OUT.P = cPosition.xyz;
+   OUT.P.z = - 1 * OUT.P.z; // - texCoord.w;
+   cPosition.xy += offset * texCoord.w;
+   OUT.Q = cPosition.xyz;
+   OUT.Q.z = OUT.P.z;
+   OUT.r = texCoord.w;*/
+  
+   OUT.hPosition = mul( Proj, cPosition );
+   OUT.screenCoord =  (OUT.hPosition.xy / OUT.hPosition.w + 1.0) / 2.0;
+   OUT.screenCoord.y = 1.0 - OUT.screenCoord.y;
+   OUT.screenCoord += float2(0.5/width, 0.5/height);   
+   
+   OUT.texCoord = texCoord;
+   OUT.color = color;
+
+
+  return OUT;
+} 
+
+
+float4 SBB_SpritePS(SBB_VS_OUT IN ,
+	//	in screenCoord : VPOS,
+		uniform sampler2D colorTexture : register(s0),
+		uniform sampler2D DepthMap : register(s1)
+		,uniform sampler2D PlanckMap : register(s2),
+		uniform sampler2D gradTex : register(s3)
+		) : COLOR
+{
+	float4 Color = IN.color;
+	float alpha = 0;
+	
+	
+	float d = length( IN.Q - IN.P );
+	float Zs;
+	
+	if( d < IN.r )
+	{	 
+		float w = sqrt( IN.r * IN.r - d * d );
+		alpha = w / IN.r;
+		//alpha *= pow( (IN.r-d) / IN.r , 2);
+	
+		float F = IN.Q.z - w;
+		float B = IN.Q.z + w;	 
+
+		Zs = tex2D( DepthMap, IN.screenCoord ).r;
+		if(Zs == 0) Zs = farplane;
+		float ds = min( Zs, B ) - max( nearplane, F );	 
+		
+		alpha *=  ds / w * 0.5;	
+	}
+	
+	Color.a = saturate(alpha) * tex2D( colorTexture, IN.texCoord.xy).r ;
+	Color.a *= IN.color.a;
+	Color.rgb = tex2D( PlanckMap, Color.aa).rgb;
+	Color.a *= tex2D(gradTex, IN.texCoord.xy).r;
+	
+	
+	return Color; 
+}
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Cau.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Cau.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Cau.hlsl	(revision 1049)
@@ -0,0 +1,73 @@
+float CauSpriteSize;
+float CauSpriteIntens;
+
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 texCoord		: TEXCOORD0;
+	float4 color		: COLOR0;
+	float2 r			: TEXCOORD1;
+	float2 center		: TEXCOORD2;
+	float4 position		: TEXCOORD3;
+	float pSize			: PSIZE;
+	float dist			: TEXCOORD4;
+};
+
+VS_OUT CauVS(float4 position : POSITION,	
+		float4 texCoord : TEXCOORD0,
+		float4 color 	: COLOR0,
+		uniform float4x4 worldView,
+		uniform float4x4 Proj,
+		uniform float4x4 worldViewProj,
+		uniform float resolution,
+		uniform sampler2D PhotonHitMap : register(s0))
+{
+  VS_OUT OUT;
+     
+   float radius = CauSpriteSize;
+   OUT.pSize = radius;
+   float4 cPosition;  
+
+  float4 pos = tex2Dlod(PhotonHitMap, float4(position.x, 1.0 - position.y,0,0)).rgba;
+//	float4 pos = float4(0,0,-0.5,1);
+   if(pos.a == 0)//no photon hit
+   {
+		OUT.center = 1000.0f;
+		OUT.position = OUT.hPosition = 1000.0f; //transform out of view
+   }
+   else
+   {
+   		float4 wPosition = float4(normalize(pos.xyz),1); 
+    
+		cPosition = mul(worldView, wPosition);
+		OUT.center = cPosition.xy;
+		OUT.position = cPosition;	
+		OUT.hPosition = mul(Proj, cPosition);		
+	 }	
+  
+   OUT.r.x = radius;
+   OUT.r.y = radius;
+   OUT.texCoord = texCoord;
+   OUT.color = 1; 
+   OUT.color = float4(pos);
+   OUT.dist = length(pos.xyz);
+   
+   return OUT;
+}
+
+
+float4 CauPS(VS_OUT IN,
+		uniform float3 color,
+		uniform sampler2D intensityTex : register(s1)
+		 ):COLOR
+{
+
+ // float2 texcoord = (IN.center - IN.position.xy) / IN.r.x;
+ // texcoord = (texcoord + 1.0) * 0.5;
+  IN.color.rgb = color;
+  float intens = tex2D(intensityTex, IN.texCoord).r;
+  IN.color.a = intens * CauSpriteIntens;
+  return IN.color;  
+}
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_PostProc.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_PostProc.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_PostProc.hlsl	(revision 1049)
@@ -0,0 +1,176 @@
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float2 texCoord		: TEXCOORD0;	
+};
+
+VS_OUT defaultVS(float4 position : POSITION,	
+				float4 texCoord : TEXCOORD0)
+{
+	VS_OUT OUT;
+  
+	OUT.hPosition = float4(sign(position.xy),0,1);
+	
+	OUT.texCoord = (float2(OUT.hPosition.x,
+							- OUT.hPosition.y) + 1.0) / 2.0;
+	
+   return OUT;
+}
+
+
+float4 defaultPS(VS_OUT IN,
+		uniform sampler2D Texture: register(s0)
+		 ):COLOR
+{	
+
+	/*float intens = length(tex2D(Texture,IN.texCoord ).rgb) / sqrt(3.0);
+	return float4(intens,intens,intens,1);*/
+	
+	float4 sample = tex2D(Texture,IN.texCoord );
+	if (sample.r + sample.g + sample.b < 1.7f) sample = float4(0,0,0,0);
+	return sample;
+	
+	//return tex2D(Texture,IN.texCoord ).b;
+}
+
+float4 BlackPS(VS_OUT IN):COLOR
+{
+	return float4(0,0,0,1);
+}
+
+float4 GlowCutPS(VS_OUT IN,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Texture: register(s0)
+		,uniform sampler2D LastTexture: register(s1)
+		 ):COLOR
+{	
+
+	/*float intens = length(tex2D(Texture,IN.texCoord ).rgb) / sqrt(3.0);
+	return float4(intens,intens,intens,1);*/
+	IN.texCoord += float2(0.5/width, 0.5/height);
+	float4 sample = tex2D(Texture,IN.texCoord );
+	float luminance = dot(sample.rgb, float3(1.0, 4.5907, 0.0601));
+	if (luminance < 5.0) sample = float4(0,0,0,0);
+	//if (sample.r + sample.g + sample.b < 1.7f) sample = float4(0,0,0,0);
+	
+	float alpha = 0.06;
+	sample = sample * alpha + tex2D(LastTexture, IN.texCoord) * (1.0 - alpha);
+	
+	return sample;
+}
+
+half4 LuminancePS(VS_OUT IN,
+		uniform half width,
+		uniform half height,
+		uniform sampler2D Texture: register(s0)
+		):COLOR
+{	
+
+	IN.texCoord += half2(0.5/width, 0.5/height);
+	half4 sample = tex2D(Texture,IN.texCoord );
+	
+	// D65 white conversion and weighting
+	half avg = sample.r * 0.21f + sample.g * 0.39f + sample.b * 0.4f;
+	return half4(avg, 0, 0, 1);
+}
+
+float4 GlowAddPS(VS_OUT IN,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Texture: register(s0),
+		uniform sampler2D GlowTexture: register(s1)
+		 ):COLOR
+{	
+	IN.texCoord += float2(0.5/width, 0.5/height);
+	/*float intens = length(tex2D(Texture,IN.texCoord ).rgb) / sqrt(3.0);
+	return float4(intens,intens,intens,1);*/
+	//return 1;
+	return tex2D(Texture,IN.texCoord ) + tex2D(GlowTexture,IN.texCoord ) ;
+}
+
+float4 ToneMapPS(VS_OUT IN,
+		uniform half width,
+		uniform half height,
+		uniform half Gain,
+		uniform sampler2D Scene: register(s0),
+		uniform sampler2D AvrLuminanceTexture: register(s1),
+		uniform sampler2D LuminanceTexture: register(s2)
+		 ):COLOR
+{	
+	IN.texCoord += half2(0.5/width, 0.5/height);
+	
+	// Automatic key calculation
+	//half Key = 1.03f - 2.0f / (2.0f + log10(tex2D(AvrLuminanceTexture, IN.texCoord).r + 1.0f));	
+	half Key = 1 / (tex2D(AvrLuminanceTexture, IN.texCoord).r / 1 + tex2D(AvrLuminanceTexture, IN.texCoord).r);
+	//return 1 / Key;
+	// Relative luminance
+	half RelLum =  Key* tex2D(LuminanceTexture, IN.texCoord).r / 
+						  tex2D(AvrLuminanceTexture, IN.texCoord).r;
+	half Lum = RelLum / (1 + RelLum);
+	// Color weghting
+	half4 Color = tex2D(Scene, IN.texCoord) * Lum;
+	// Gamma correction
+	
+	//Color = pow(Color * half4(1.05f, 0.97f, 1.27f, 1.0f), Gain);
+	return Color;
+
+}
+
+float4 GlowBlurHPS(VS_OUT IN,
+		uniform float Stretch,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Texture: register(s0)) : COLOR {
+	float2 tex0 = IN.texCoord + float2(0.5/width, 0.5/height);
+	float4 texLookUp_h;
+			
+	/*texLookUp_h =	 tex2D(Texture, float2(tex0.x-(3.86979f*Stretch/width), tex0.y)) +
+					 tex2D(Texture, float2(tex0.x-(1.72291f*Stretch/width ), tex0.y)) +
+					 tex2D(Texture, tex0) +
+					 tex2D(Texture, float2(tex0.x+(1.72291f*Stretch/width), tex0.y)) +
+					 tex2D(Texture, float2(tex0.x+(3.86979f*Stretch/width), tex0.y));*/
+	
+	texLookUp_h =	 tex2D(Texture, float2(tex0.x-(2.0*Stretch/width), tex0.y)) +
+					 tex2D(Texture, float2(tex0.x-(1.0*Stretch/width ), tex0.y)) +
+					 tex2D(Texture, tex0) +
+					 tex2D(Texture, float2(tex0.x+(1.0*Stretch/width), tex0.y)) +
+					 tex2D(Texture, float2(tex0.x+(2.0*Stretch/width), tex0.y));
+
+	return texLookUp_h / 5.0 ;
+	//return texLookUp_h /5;
+}
+
+float4 GlowBlurVPS(VS_OUT IN,
+		uniform float Stretch,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Texture: register(s0)) : COLOR {
+	float2 tex0 = IN.texCoord + float2(0.5/width, 0.5/height);
+	float4 texLookUp_v;
+		
+	/*texLookUp_v =    tex2D(Texture, float2(tex0.x, tex0.y-(3.86979f*Stretch/height)))+
+					 tex2D(Texture, float2(tex0.x, tex0.y-(1.72291f*Stretch/height)))+
+					 tex2D(Texture, tex0)+
+					 tex2D(Texture, float2(tex0.x, tex0.y+(1.72291f*Stretch/height)))+
+					 tex2D(Texture, float2(tex0.x, tex0.y+(3.86979f*Stretch/height)));*/
+
+	texLookUp_v =    tex2D(Texture, float2(tex0.x, tex0.y-(2*Stretch/height)))+
+					 tex2D(Texture, float2(tex0.x, tex0.y-(1*Stretch/height)))+
+					 tex2D(Texture, tex0) +
+					 tex2D(Texture, float2(tex0.x, tex0.y+(1*Stretch/height)))+
+					 tex2D(Texture, float2(tex0.x, tex0.y+(2*Stretch/height)));
+	
+	return texLookUp_v / 5.0;
+}
+
+float4 CopyPS(VS_OUT IN,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Texture: register(s0)) : COLOR 
+		{
+	IN.texCoord += float2(0.5/width, 0.5/height);
+	return tex2D(Texture,IN.texCoord );
+}
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_DepthShadow.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_DepthShadow.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_DepthShadow.hlsl	(revision 1049)
@@ -0,0 +1,99 @@
+///////depth map
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 Position	: TEXCOORD0;
+};
+
+VS_OUT hDepthVS(float4 position : POSITION,	
+		uniform float4x4 worldView,
+		uniform float4x4 worldViewProj)
+{
+  
+  VS_OUT OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.Position = mul(worldView, position);
+  OUT.Position.z *= -1.0;
+  return OUT;
+}
+
+
+
+float4 DepthPS(VS_OUT IN ):COLOR
+{
+	float dist = length(IN.Position.xyz);
+	return float4(dist, dist, dist, 1);	
+}
+
+///////////////Shadow
+
+struct VS_OUT_SHADOW
+{
+	float4 hPosition	: POSITION;
+	float4 Position		: TEXCOORD0;
+	float4 cPosition	: TEXCOORD1;
+};
+
+VS_OUT_SHADOW depthShadowVS(float4 position : POSITION,	
+		uniform float4x4 world,
+		uniform float4x4 worldView,
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT_SHADOW OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.Position = mul(world, position);
+  OUT.cPosition = mul(worldView, position);
+  return OUT;
+}
+
+
+float4 depthShadowPS(VS_OUT_SHADOW IN,
+					uniform float4x4 lightView,
+					uniform float4x4 lightViewProj,
+					uniform float4x4 lightView2,
+					uniform float4x4 lightViewProj2,
+					uniform sampler2D depthShadowMap : register(s0),
+					uniform sampler2D depthShadowMap2 : register(s1)):COLOR
+{					
+	float bias = 0.06;
+	float4 shadowColor = float4(0.6, 0.6, 0.6, 1.0);
+
+	float4 light1 = 1;
+	float4 light2 = 1;
+	float weight1 = 1;
+	float weight2 = 1;
+	
+	float4 lightCamPos1 = mul(lightView, IN.Position);
+	float d1 = length(lightCamPos1.xyz);	
+	float4 lightScreenPos1 = mul(lightViewProj, IN.Position);
+	lightScreenPos1 = lightScreenPos1 / lightScreenPos1.w ;	
+	lightScreenPos1 = ( lightScreenPos1 + 1.0 ) / 2.0;
+	lightScreenPos1.y = 1.0 - lightScreenPos1.y;
+	float4 storedDepth1 = tex2D(depthShadowMap, lightScreenPos1.xy);
+		if(storedDepth1.r + bias < d1)
+			light1=0;
+	
+	
+	float4 lightCamPos2 = mul(lightView2, IN.Position);
+	float d2 = length(lightCamPos2.xyz);
+	
+			
+	float4 lightScreenPos2 = mul(lightViewProj2, IN.Position);
+	lightScreenPos2 = lightScreenPos2 / lightScreenPos2.w ;	
+
+	if(abs(lightScreenPos2.x) < 0.99 && abs(lightScreenPos2.y) < 0.99 )
+	{
+		lightScreenPos2 = ( lightScreenPos2 + 1.0 ) / 2.0;
+		lightScreenPos2.y = 1.0 - lightScreenPos2.y;
+		float4 storedDepth2 = tex2D(depthShadowMap2, lightScreenPos2.xy);
+			if(storedDepth2.r + bias < d2)
+				light2=0;	
+	}
+	else
+		weight2 = 0;
+		
+	weight1 = 1 - weight2;	
+		
+	return saturate((light1*weight1 + light2*weight2) + shadowColor);	
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/Fire.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/Fire.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/Fire.hlsl	(revision 1049)
@@ -0,0 +1,135 @@
+
+float farplane = 1000.0; //far plane
+float nearplane = 0.1; //far plane
+float width = 800;
+float height = 600;
+
+struct SBB_VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float4 texCoord		: TEXCOORD0;
+	float3 P		: TEXCOORD1;
+	float3 Q		: TEXCOORD2;
+	float r			: TEXCOORD3;
+	float2 screenCoord	: TEXCOORD4;	
+	float4 color		: COLOR0;
+};
+
+SBB_VS_OUT FireVS (float4 position : POSITION,	
+		float4 texCoord : TEXCOORD0,
+		float4 color 	: COLOR,
+		uniform float4x4 worldView,
+		uniform float4x4 Proj,
+		uniform float4x4 worldViewProj)
+{
+	SBB_VS_OUT OUT;
+  
+	float2 offset = texCoord.zw;
+	float4 cPosition;   
+	float4 wPosition = position;    
+	cPosition = mul(worldView, wPosition);	
+	OUT.P = cPosition.xyz;
+	OUT.P.z = - 1 * OUT.P.z;
+	cPosition.xy += offset;				
+	OUT.Q = cPosition.xyz;	
+	OUT.Q.z = OUT.P.z;
+	OUT.r = abs(texCoord.z);		
+
+   /*texCoord.y = 1.0 - texCoord.y;
+   float2 offset = texCoord.xy * 2.0 - 1.0;
+   float4 cPosition = mul(worldView, position);
+   OUT.P = cPosition.xyz;
+   OUT.P.z = - 1 * OUT.P.z; // - texCoord.w;
+   cPosition.xy += offset * texCoord.w;
+   OUT.Q = cPosition.xyz;
+   OUT.Q.z = OUT.P.z;
+   OUT.r = texCoord.w;*/
+  
+   OUT.hPosition = mul( Proj, cPosition );
+   OUT.screenCoord =  (OUT.hPosition.xy / OUT.hPosition.w + 1.0) / 2.0;
+   OUT.screenCoord.y = 1.0 - OUT.screenCoord.y;
+   OUT.screenCoord += float2(0.5/width, 0.5/height);   
+   
+   OUT.texCoord = texCoord;
+   OUT.color = color;
+
+
+  return OUT;
+} 
+
+
+void FirePS(SBB_VS_OUT IN ,
+	//	in screenCoord : VPOS,
+		uniform sampler2D colorTexture : register(s0),
+		uniform sampler2D DepthMap : register(s1)
+		,uniform sampler2D PlanckMap : register(s2),
+		uniform sampler2D gradTex : register(s3),
+		uniform sampler2D heatTex : register(s4),
+		out float4 Color : COLOR0,
+		out float4 Heat: COLOR1)
+{
+	Color = IN.color;
+	float alpha = 0;
+	
+	
+	float d = length( IN.Q - IN.P );
+	float Zs;
+	
+	if( d < IN.r )
+	{	 
+		float w = sqrt( IN.r * IN.r - d * d );
+		alpha = w / IN.r;
+		//alpha *= pow( (IN.r-d) / IN.r , 2);
+	
+		float F = IN.Q.z - w;
+		float B = IN.Q.z + w;	 
+
+		Zs = tex2D( DepthMap, IN.screenCoord ).r;
+		if(Zs == 0) Zs = farplane;
+		float ds = min( Zs, B ) - max( nearplane, F );	 
+		
+		alpha *=  ds / w * 0.5;	
+	}
+	
+	alpha = saturate(alpha);
+	Color.a = alpha * tex2D( colorTexture, IN.texCoord.xy).r ;
+	Color.a *= IN.color.a;
+	Color.rgb = tex2D( PlanckMap, Color.aa).rgb;
+	float grad = tex2D(gradTex, IN.texCoord.xy).r;
+	Color.a *= grad;
+
+	Heat = float4(0,0,0,0.5);	
+	Heat.rg = (tex2D(heatTex, IN.texCoord.xy).rg * 2.0 - 1.0) * grad * alpha * IN.color.a;
+	
+}
+
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float2 texCoord		: TEXCOORD0;	
+};
+
+
+float4 FireHeatCompositorPS(VS_OUT IN,
+		uniform float width,
+		uniform float height,
+		uniform sampler2D Scene: register(s0)
+		,uniform sampler2D FireColor: register(s1)
+		,uniform sampler2D FireHeatNoise: register(s2)
+		 ):COLOR
+{	
+	float maxOffset = 0.035;
+	float4 Color = 1;
+
+	float2 offset = tex2D(FireHeatNoise,IN.texCoord ).rg;
+		
+	offset *= maxOffset;
+	float2 newTex = IN.texCoord + offset;
+	float4 SceneSample = tex2D(Scene, newTex );
+	float4 FireSample  = tex2D(FireColor, newTex );
+	
+	Color = SceneSample + FireSample;// + float4(offset,1,1);	
+	
+	return Color;
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CubeMap.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CubeMap.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CubeMap.hlsl	(revision 1049)
@@ -0,0 +1,39 @@
+
+
+void deaultVS(half4 position : POSITION,
+		out half3 wPos	: TEXCOORD1,				
+		half2 texCoord : TEXCOORD0,
+		out half2 otexCoord : TEXCOORD0,
+		half3 normal   : NORMAL,
+		out half3 mNormal  : TEXCOORD2,
+		out half4 hPos : POSITION,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+ 
+  hPos = mul(worldViewProj, position);
+  wPos = mul(world, position).xyz;
+  mNormal = normal;
+  otexCoord = texCoord;
+
+}
+
+
+
+
+void deaultPS(  half2 texCoord : TEXCOORD0, 
+		half3 wPos	: TEXCOORD1,	
+		half3 mNormal  : TEXCOORD2,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform half3 cameraPos,
+		out half4 Color :COLOR0)
+{
+	Color = float4(1,1,1,1);
+	mNormal = normalize(mNormal);
+	half3 V = normalize(wPos - cameraPos);
+	half3 R = reflect( V, mNormal);	
+	R.z *= -1;
+		
+	Color = texCUBE(CubeMap, R );
+	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Localized_EnvMap.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Localized_EnvMap.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Localized_EnvMap.hlsl	(revision 1049)
@@ -0,0 +1,412 @@
+//metal:
+float3 n, k;	// R 700 nm, G 550 nm, B 435 nm 
+float REDUCED_CUBEMAP_SIZE = 4;
+
+float3 F0;
+/*
+	
+	if (iWhichMetal == 1) { // copper	
+		n = float3(0.21f, 0.96f, 1.17f);	
+		k = float3(4.16f, 2.57f, 2.32f); }
+	else if (iWhichMetal == 2) { // gold
+		n = float3(0.16f, 0.35f, 1.6f);		
+		k = float3(3.98f, 2.71f, 1.92f); }
+	else if (iWhichMetal == 3) { // silver
+		n = float3(0.142f, 0.124f, 0.158f);	
+		k = float3(4.52f,  3.33f, 2.32f); }
+	else if (iWhichMetal == 4) { // alu
+		n = float3(1.83f, 0.96f, 0.577f);
+		k = float3(8.31f,  6.69f, 5.288f); }
+
+*/	
+
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, - coord.z) );
+	return color;
+}
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 40; ///sky
+	return dist;
+}
+
+/*
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+  
+	float rl = readDistanceCubeMap(mp, R); // |r|
+	
+	float dp = rl - dot(x, R);		// parallax
+	
+	float3 p = x + R * dp;
+	return p;
+}*/
+
+
+
+
+// This function is called several times.
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+	float rl = readDistanceCubeMap( mp, R);				// |r|
+	
+	float ppp = length( x ) /  readDistanceCubeMap( mp, x);			// |p|/|p|
+	float dun = 0, pun = ppp, dov = 0, pov = 0;
+	float dl = rl * ( 1 - ppp );							// eq. 2
+	float3 l = x + R * dl;									// ray equation
+
+	// iteration
+	for( int i = 0; i < 2; i++ )	// 2 !!!!!!!!!!!!!!!!!!!!!!!
+	{
+		float llp = length( l ) / readDistanceCubeMap( mp, l);		// |l|/|l|
+		if ( llp < 0.999f )									// undershooting
+		{
+			dun = dl; pun = llp;							// last undershooting
+			dl += ( dov == 0 ) ? rl * ( 1 - llp ) :			// eq. 2
+				( dl - dov ) * ( 1 - llp ) / ( llp - pov );	// eq. 3
+		} else if ( llp > 1.001f )							// overshooting
+		{
+			dov = dl; pov = llp;							// last overshooting
+			dl += ( dl -dun ) * ( 1 - llp ) / ( llp - pun );// eq. 3
+		}
+		l = x + R * dl;										// ray equation
+	}
+	return l;												// computed hit point
+}
+
+void LocalizedVS(float4 position : POSITION,
+		out float3 wPos	: TEXCOORD1,				
+		float2 texCoord : TEXCOORD0,
+		out float2 otexCoord : TEXCOORD0,
+		float3 normal   : NORMAL,
+		out float3 mNormal  : TEXCOORD2,
+		out float4 hPos : POSITION,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world,
+		uniform float4x4 worldIT)
+{
+ 
+  hPos = mul(worldViewProj, position);
+  wPos = mul(world, position).xyz;  
+  mNormal = mul(normal, worldIT);
+ // mNormal = normal;
+  otexCoord = texCoord;
+}
+//////////////
+//Localized reflection
+//////////////
+void LocalizedPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,		
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 RR, TT;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+	
+	float3 T =  normalize(refract(V, mNormal, 0.9));
+		
+	RR = R;	TT = T;
+	
+	//RR += 0.000001 * lastCenter.x;
+	
+	RR = Hit(mPos, R, DistanceMap);
+	TT = Hit(mPos, T, DistanceMap);
+	
+	float4 reflectcolor = readCubeMap(CubeMap, RR );		
+	float4 refractcolor = readCubeMap(CubeMap, TT );		
+	
+	float cos_theta = -dot(V, mNormal);
+	float sFresnel = 0.2;
+	float F = (sFresnel + pow(1-cos_theta, 5.0f) * (1-sFresnel));
+ 
+
+	Color = (F * reflectcolor + (1-F) * refractcolor) ;	
+}
+
+
+
+//////////////
+//Metal
+//////////////
+void LocalizedMetalPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,				
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	Color = readCubeMap(CubeMap, newTexCoord );
+	
+	//Color = float4(mNormal + lastCenter.x*0.0000001, 1);	
+	
+	float ctheta_in = dot(mNormal,R);
+	float ctheta_out = dot(mNormal,-V);
+
+	float3 F = 0;
+	
+	// F,P,G számítása
+	if ( ctheta_in > 0 && ctheta_out > 0 )
+	{
+		float3 H = normalize(R - V);	// felezõvektor
+		float cbeta  = dot(H,R);		
+		//F = ( (n-1)*(n-1) + pow(1-cbeta,5) * 4*n + k*k) / ( (n+1)*(n+1) + k*k );
+		//float3 F0 = ((n-1)*(n-1) + k*k) / ( (n+1)*(n+1) + k*k );
+		//float3 F1 = float3(1.0f,1.0f,1.0f) - F0;
+		F = F0 + (1-F0)*pow(1-cbeta,5);
+	}	
+	
+	Color = Color * float4(F,1);
+	
+	//Color = length(lastCenter.xyz) * 0.1;
+}
+//////////////
+//PhotonMap
+//////////////
+/*void PhotonMapPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE UVMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	
+	Color = readCubeMap(UVMap, newTexCoord );
+	//Color = float4(1,0,0,1);		
+}*/
+
+float4 PhotonMapCausticPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE DistanceMap : register(s0),
+		uniform float3 lastCenter):COLOR0
+{
+	
+	float4 Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal ));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+		
+	Color = float4(normalize(newTexCoord),1);
+	
+	//Color = 0.0001 * Color +  float4(0,0,1,1);
+	//Color += 0.0001 * lastCenter.x;
+	//if(dot(V,mNormal)>0)
+	//{
+	//	Color = float4(1,0,0,0);		
+	//}		
+	return Color;
+}
+
+void PhotonMapSoftShadowPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE DistanceMap : register(s0),
+		uniform float3 lastCenter,
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	newTexCoord = V;	
+	
+	newTexCoord = Hit(mPos, V, DistanceMap);
+	
+	Color = float4(normalize(newTexCoord),1);
+}
+
+/////////////////////
+///// Diffuse
+///////////////////
+
+float4 GetContibution(float3 L, float3 pos, float3 N, float3 V, samplerCUBE SmallEnvMapSampler, samplerCUBE DistanceEnvMapSampler)	// Phong-Blinn
+// L: a hossza lényeges (az egységkocka faláig ér)
+{
+    REDUCED_CUBEMAP_SIZE = 4;
+    
+	float kd = 0.3;	// 0.3
+	float ks = 0;	// 0.5
+	float shininess = 10;
+	
+	float l = length(L);
+	L = normalize(L);
+
+	//dw
+	float dw = 4 / (REDUCED_CUBEMAP_SIZE*REDUCED_CUBEMAP_SIZE*l*l*l + 4/3.1416f);
+	//Lin
+	float4 Lin = readCubeMap(SmallEnvMapSampler, L);
+	//r
+	float doy = readDistanceCubeMap(DistanceEnvMapSampler, L);
+	float dxy = length(L * doy - pos);	
+
+	//dws
+	float dws = (doy*doy * dw) / (dxy*dxy*(1 - dw/3.1416f) + doy*doy*dw/3.1416f);	// localization:
+	//float dws = dw;
+	
+	//L = L * doy - pos;	// L: x->y, az objektumtól induljon, ne a középpontból
+	L = normalize(L);
+	float3 H = normalize(L + V);	// felezõvektor
+
+	float a = kd * max(dot(N,L),0) + 
+			  ks * pow(max(dot(N,H),0), shininess); // diffuse + specular
+
+	// 1.: eddigi
+	//return Lin * a * dws;
+	
+	float ctheta_in = dot(N,L);
+	float ctheta_out = dot(N,V);	
+	
+	return Lin * a * dws;		
+}
+
+void DiffuseVS( float4 position : POSITION,
+                float3 normal : NORMAL,
+                float2 Tex : TEXCOORD0,
+                uniform float4x4 worldViewProj,
+				uniform float4x4 world,
+				//uniform float3 lastCenter,	//LI//
+				out float4 hposition : POSITION,
+                out float2 oTex : TEXCOORD0,
+                out float3 Normal : TEXCOORD1,
+                out float3 pos : TEXCOORD2 )
+{
+	pos = /*lastCenter + 0.01 * */mul( world, position ).xyz;
+	Normal = normal;
+    oTex = Tex;    
+    hposition = mul( worldViewProj, position );
+}
+
+
+float4 DiffusePS( float2 Tex : TEXCOORD0,
+           float3 pos : TEXCOORD1,
+           float3 N : TEXCOORD2,
+           uniform float3 cameraPos,
+           uniform float3 lastCenter,	//LI//
+           uniform half3 lightPosition,
+           uniform samplerCUBE SmallEnvMapSampler : register(s0),
+           uniform samplerCUBE DistanceEnvMapSampler : register(s1),
+			uniform sampler2D ColorTexture : register(s2)
+            ) : COLOR0
+{
+    REDUCED_CUBEMAP_SIZE = 8;
+	
+    //V = /*-*/normalize( V );
+    float3 V = normalize(pos - cameraPos);	// 
+    N = normalize( N ); 
+	float3 R = reflect(V, N);
+    pos -= lastCenter;
+
+	
+    //return float4(N,1);
+    //return float4(V,1);
+    //return float4(R,1);
+		
+	//return readCubeMap(SmallEnvMapSampler,R);
+	
+    //pos.xy += float2(1.0/LIGHT_TEXTURE_SIZE, -1.0/LIGHT_TEXTURE_SIZE);	// eltolás a pixel/texel középpontba
+    // x, y = -1..1
+    // z = 1
+    
+    float4 intens = 0;
+    /*
+	intens += GetContibution( R, pos, N, V, SmallEnvMapSampler);
+	intens = readCubeMap(SmallEnvMapSampler, R);
+	return intens;*/
+	
+	for (int x = 0; x < REDUCED_CUBEMAP_SIZE; x++)			// az envmap minden texelére
+	 for (int y = 0; y < REDUCED_CUBEMAP_SIZE; y++)
+	//int x = 0;		// az envmap 1 texelére
+	//int y = 0; 
+	//if (x==LIGHT_TEXTURE_SIZE/2 && y==LIGHT_TEXTURE_SIZE/2)
+	 {
+		// intenzitás kiolvasása az adott texelbõl 
+		
+		float2 p, tpos; 
+	    tpos.x = x/(float)REDUCED_CUBEMAP_SIZE;	// 0..1
+	    tpos.y = y/(float)REDUCED_CUBEMAP_SIZE;	// 0..1
+	    tpos.xy += float2(0.5/REDUCED_CUBEMAP_SIZE, 0.5/REDUCED_CUBEMAP_SIZE);	// az adott texel középpont uv koordinátái
+	    
+	    p.x = tpos.x; 
+	    p.y = 1-tpos.y;
+	    p.xy = 2*p.xy - 1;	// -1..1	// az adott texel középpont pozíciója
+	    
+	    float3 L;
+	    
+		L = float3(p.x, p.y, 1);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, p.y, -1);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, 1, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, -1, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(1, p.x, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(-1, p.x, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+	}
+
+	float4 retColor = intens;
+	retColor *= tex2D(ColorTexture, Tex);
+	return retColor;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bottle.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bottle.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bottle.hlsl	(revision 1049)
@@ -0,0 +1,138 @@
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, - coord.z) );
+	return color;
+}
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 40; ///sky
+	return dist;
+}
+
+// This function is called several times.
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+	float rl = readDistanceCubeMap( mp, R);				// |r|
+	
+	float ppp = length( x ) /  readDistanceCubeMap( mp, x);			// |p|/|p|
+	float dun = 0, pun = ppp, dov = 0, pov = 0;
+	float dl = rl * ( 1 - ppp );							// eq. 2
+	float3 l = x + R * dl;									// ray equation
+
+	// iteration
+	for( int i = 0; i < 2; i++ )	// 2 !!!!!!!!!!!!!!!!!!!!!!!
+	{
+		float llp = length( l ) / readDistanceCubeMap( mp, l);		// |l|/|l|
+		if ( llp < 0.999f )									// undershooting
+		{
+			dun = dl; pun = llp;							// last undershooting
+			dl += ( dov == 0 ) ? rl * ( 1 - llp ) :			// eq. 2
+				( dl - dov ) * ( 1 - llp ) / ( llp - pov );	// eq. 3
+		} else if ( llp > 1.001f )							// overshooting
+		{
+			dov = dl; pov = llp;							// last overshooting
+			dl += ( dl -dun ) * ( 1 - llp ) / ( llp - pun );// eq. 3
+		}
+		l = x + R * dl;										// ray equation
+	}
+	return l;												// computed hit point
+}
+
+void BottleVS(float4 position : POSITION,
+		out float3 wPos	: TEXCOORD1,				
+		float2 texCoord : TEXCOORD0,
+		out float2 otexCoord : TEXCOORD0,
+		float3 normal   : NORMAL,
+		out float3 mNormal  : TEXCOORD2,
+		out float4 hPos : POSITION,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world,
+		uniform float4x4 worldIT)
+{
+ 
+  hPos = mul(worldViewProj, position);
+  wPos = mul(world, position).xyz;  
+  mNormal = mul(normal, worldIT);
+ // mNormal = normal;
+  otexCoord = texCoord;
+}
+
+//////////////
+//Localized reflection
+//////////////
+void BottlePS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,
+		uniform float3 color,		
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 RR, TT;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+	
+	float3 T =  normalize(refract(V, mNormal, 0.9));
+		
+	RR = R;	TT = T;	
+	
+	RR = Hit(mPos, R, DistanceMap);
+	TT = Hit(mPos, T, DistanceMap);
+	
+	float4 reflectcolor = readCubeMap(CubeMap, RR );		
+	float4 refractcolor = readCubeMap(CubeMap, TT );		
+	
+	float cos_theta = -dot(V, mNormal);
+	float sFresnel = 0.2;
+	float F = (sFresnel + pow(1-cos_theta, 5.0f) * (1-sFresnel)); 
+
+	Color = (F * reflectcolor + (1-F) * refractcolor * float4(color,1)) ;
+	
+	half3 light = lightPosition; 
+	V = -V;
+	half3 L = normalize(light);
+	half3 H = normalize(L+V);
+	half4 lighting = lit(dot(mNormal, L),dot(mNormal, H), 100);
+	
+	Color = (0.7 + lighting.y) * Color + lighting.z;
+}
+
+
+float4 BottlePhotonMapPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE DistanceMap : register(s0),
+		uniform float3 lastCenter):COLOR0
+{
+	
+	float4 Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(refract( V, mNormal, 0.9 ));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+		
+	Color = float4(normalize(newTexCoord),1);
+	
+	//if(dot(V,mNormal)>0)
+	//{
+	//	Color = float4(1,0,0,0);		
+	//}		
+	return Color;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bumpmapped.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bumpmapped.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/bumpmapped.hlsl	(revision 1049)
@@ -0,0 +1,111 @@
+float4x4 world_IT;
+
+struct VertOut
+{
+	half4 hPosition	:POSITION;	
+	half2 texCoord	:TEXCOORD;	
+	half3 wPosition	:TEXCOORD1;	
+	half3 Normal	:TEXCOORD2;
+	half3 Tangent   : TEXCOORD3;	 // model space tangent vector
+    half3 Binormal  : TEXCOORD4;	 // model space binormal vector
+};
+
+VertOut deaultVS(half4 position : POSITION,
+		half3 normal:NORMAL,
+		half3 Tangent   : TEXCOORD1, 	 
+		half2 texCoord : TEXCOORD0,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+  VertOut OUT;
+  OUT.hPosition = mul(worldViewProj, position);  
+  OUT.texCoord = texCoord;
+  OUT.wPosition = mul(world, position).xyz;
+  OUT.Normal = normal;
+  OUT.Tangent = Tangent;  
+  OUT.Binormal = cross(Tangent, normal); 
+  return OUT;    
+}
+
+half4 deaultPS(VertOut IN,
+				uniform sampler2D Texture : register(s0),
+				uniform sampler2D NormalMap : register(s1),
+				uniform half3 lightPosition,
+				uniform half3 cameraPos,
+				uniform half4 ambientColor,
+				uniform half4 diffuseColor,
+				uniform half4 specularColor,
+				uniform half shininess				
+				):COLOR
+{
+	half4 Color = half4(1,1,1,1);	
+
+///get normal
+	float3x3 ModelToTangent = float3x3(IN.Tangent, IN.Binormal, IN.Normal); 
+	//float3x3 ModelToTangent = TransfModelToTangent(IN.Tangent, IN.Binormal, IN.Normal );
+    half3 tNormal = tex2D(NormalMap, IN.texCoord).rgb;     	
+   
+   
+    half3 wNormal =mul(tNormal, ModelToTangent );
+    //wNormal = IN.Normal;
+    wNormal = normalize(mul( wNormal, world_IT ));
+
+///shading
+
+	half3 V = -normalize( cameraPos - IN.wPosition);
+	half3 light = lightPosition;
+	half3 L = normalize(light);
+	half3 H = normalize(L + V);
+	half4 lighting = lit(dot(wNormal, L),dot(wNormal, H), shininess);
+		
+	Color = tex2D(Texture, IN.texCoord) * (lighting.y * diffuseColor + ambientColor)
+					+ lighting.z * specularColor; 
+	//Color = float4(wNormal,1);
+	return Color;
+}
+
+
+half4 doubleTexturePS(VertOut IN,
+				uniform sampler2D baseTexture : register(s0),
+				uniform sampler2D paintTexture : register(s1),
+				uniform sampler2D NormalMap : register(s2),
+				uniform half3 lightPosition,
+				uniform half3 cameraPos,
+				uniform half4 ambientColor,
+				uniform half4 diffuseColor,
+				uniform half4 specularColor,
+				uniform half shininess,
+				uniform float2 texUVmult				
+				):COLOR
+{
+	half4 Color = half4(1,1,1,1);
+	
+	float2 baseTexCoord = 	IN.texCoord * texUVmult;
+
+///get normal
+	float3x3 ModelToTangent = float3x3(IN.Tangent, IN.Binormal, IN.Normal); 
+	//float3x3 ModelToTangent = TransfModelToTangent(IN.Tangent, IN.Binormal, IN.Normal );
+    half3 tNormal = tex2D(NormalMap, baseTexCoord).rgb;     	
+   
+   
+    half3 wNormal =mul(tNormal, ModelToTangent );
+    //wNormal = IN.Normal;
+    wNormal = normalize(mul( wNormal, world_IT ));
+
+///shading
+
+	half3 V = -normalize( cameraPos - IN.wPosition);
+	half3 light = lightPosition;
+	half3 L = normalize(light);
+	half3 H = normalize(L + V);
+	half4 lighting = lit(dot(wNormal, L),dot(wNormal, H), shininess);
+	
+	float4 baseColor = tex2D(baseTexture, baseTexCoord);
+	float4 paintColor = tex2D(paintTexture, IN.texCoord);
+	float4 texColor = baseColor + paintColor;
+		
+	Color =  texColor * (lighting.y * diffuseColor + ambientColor)
+					+ lighting.z * specularColor; 
+	//Color = float4(wNormal,1);
+	return Color;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_SoftShadow.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_SoftShadow.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_SoftShadow.hlsl	(revision 1049)
@@ -0,0 +1,64 @@
+struct VertOut
+{
+	float4 hPosition	:POSITION;	
+	float2 texCoord		:TEXCOORD;	
+	float3 wPosition	:TEXCOORD1;
+	float3 wNormal		:TEXCOORD2;	
+};
+
+
+VertOut deaultVS(float4 position : POSITION,
+		float3 normal:NORMAL,
+		float2 texCoord : TEXCOORD0,
+		uniform float4x4 world_IT,
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+  VertOut OUT;
+  OUT.texCoord = texCoord;
+  OUT.hPosition = mul(worldViewProj, position);  
+  OUT.wPosition = mul(world, position).xyz;
+  OUT.wNormal = mul( normal, world_IT);
+  //OUT.wNormal = normal;
+  return OUT;    
+}
+
+float4 deaultPS(VertOut IN,
+				uniform samplerCUBE CubeMap : register(s1),
+				uniform sampler2D Texture : register(s0),
+				uniform float3 cubeMapCameraPosition):COLOR
+{
+	float4 Color = float4(1,1,1,1);	
+	
+	float3 dir = IN.wPosition - cubeMapCameraPosition;
+	float4 shadow = texCUBE(CubeMap, float3(dir.xy,-dir.z) );
+			
+	Color = tex2D(Texture, IN.texCoord) * (1.0- shadow);
+		
+	return Color;
+}
+
+
+float4 deault2PS(VertOut IN,
+				uniform samplerCUBE CubeMap : register(s0),
+				uniform float3 cubeMapCameraPosition,
+				uniform float3 lightPosition,
+				uniform float3 cameraPos
+				):COLOR
+{
+	float4 Color = float4(1,1,1,1);	
+	
+	float3 dir = IN.wPosition - cubeMapCameraPosition;
+	float4 shadow = texCUBE(CubeMap, float3(dir.xy,-dir.z) );
+	
+	IN.wNormal = normalize(IN.wNormal);
+	float3 V = normalize(IN.wPosition - cameraPos);
+	float3 L = normalize(lightPosition - IN.wPosition);
+	float3 H = normalize(L + V);
+	float4 lighting = lit(dot(IN.wNormal, L),dot(IN.wNormal, H), 80);
+	
+			
+	Color = (1.0 - shadow ) *  lighting.y * float4(0.4, 0.7, 0.6, 1) + lighting.z;
+		
+	return Color;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/CarReflections.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/CarReflections.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/CarReflections.hlsl	(revision 1049)
@@ -0,0 +1,180 @@
+float3 F0;
+
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, - coord.z) );
+	return color;
+}
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 1000000; ///sky
+	return dist;
+}
+
+
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+	float rl = readDistanceCubeMap( mp, R);				// |r|
+	
+	float ppp = length( x ) /  readDistanceCubeMap( mp, x);			// |p|/|p|
+	float dun = 0, pun = ppp, dov = 0, pov = 0;
+	float dl = rl * ( 1 - ppp );							// eq. 2
+	float3 l = x + R * dl;									// ray equation
+
+	// iteration
+	for( int i = 0; i < 2; i++ )	// 2 !!!!!!!!!!!!!!!!!!!!!!!
+	{
+		float llp = length( l ) / readDistanceCubeMap( mp, l);		// |l|/|l|
+		if ( llp < 0.999f )									// undershooting
+		{
+			dun = dl; pun = llp;							// last undershooting
+			dl += ( dov == 0 ) ? rl * ( 1 - llp ) :			// eq. 2
+				( dl - dov ) * ( 1 - llp ) / ( llp - pov );	// eq. 3
+		} else if ( llp > 1.001f )							// overshooting
+		{
+			dov = dl; pov = llp;							// last overshooting
+			dl += ( dl -dun ) * ( 1 - llp ) / ( llp - pun );// eq. 3
+		}
+		l = x + R * dl;										// ray equation
+	}
+	return l;												// computed hit point
+}
+
+void LocalizedVS(float4 position : POSITION,
+		out float3 wPos	: TEXCOORD1,				
+		float2 texCoord : TEXCOORD0,
+		out float2 otexCoord : TEXCOORD0,
+		float3 normal   : NORMAL,
+		out float3 mNormal  : TEXCOORD2,
+		out float4 hPos : POSITION,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world,
+		uniform float4x4 worldIT)
+{
+ 
+  hPos = mul(worldViewProj, position);
+  wPos = mul(world, position).xyz;  
+  mNormal = mul(normal, worldIT);
+  //mNormal *=-1;
+ //mNormal = normal;  
+  otexCoord = texCoord;
+}
+
+
+void LocalizedMetalPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,
+		uniform float reflectivity,
+		uniform float3 phongColor,				
+		out float4 Color :COLOR0)
+{	
+	Color = float4(1,1,1,1);
+
+	//metallic reflection	
+	mNormal = normalize(mNormal);
+	
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	Color = readCubeMap(CubeMap, newTexCoord );	
+	
+	//Color =  0.000000001 *Color +  float4(mNormal, 1);
+	
+	float ctheta_in = dot(mNormal,R);
+	float ctheta_out = dot(mNormal,-V);
+
+	float3 F = 0;
+	
+	if ( ctheta_in > 0 && ctheta_out > 0 )
+	{
+		float3 H1 = normalize(R - V);	// felezõvektor
+		float cbeta  = dot(H1,R);		
+		F = F0 + (1-F0)*pow(1-cbeta,5);
+	}		
+	
+	Color = Color * float4(F,1);
+	
+	
+//phong
+	
+	half3 light = lightPosition; //(lightPosition -wPos) ;// / 200.0;
+	V = -V;
+	half3 L = normalize(light);
+	half3 H = normalize(L+V);
+	half4 lighting = lit(dot(mNormal, L),dot(mNormal, H), 200);
+	
+//addition
+	Color = Color * reflectivity + (1 - reflectivity) * (
+										(lighting.x * float4(phongColor * 0.2,1) + 
+										 lighting.y * float4(phongColor,1) + 
+										 lighting.z * float4(4,4,4,4) )) ;
+}
+
+void MirrorPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+
+	//metallic reflection	
+	mNormal = normalize(mNormal);
+	
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	Color = readCubeMap(CubeMap, newTexCoord );		
+	
+}
+
+void LampGlassPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float4 glasColor,
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+
+	//metallic reflection	
+	mNormal = normalize(mNormal);
+	
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	Color = readCubeMap(CubeMap, newTexCoord );
+	Color.a = 1;
+	Color *= glasColor;		
+	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_UV.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_UV.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_UV.hlsl	(revision 1049)
@@ -0,0 +1,24 @@
+struct VS_OUT
+{
+	float4 hPosition	: POSITION;
+	float3 texCoord 	: TEXCOORD0;
+};
+
+VS_OUT UV_VS(float4 position : POSITION,	
+		float3 texCoord: TEXCOORD0,	
+		float3 texCoord1: TEXCOORD1,	
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.texCoord = texCoord1; 
+  return OUT;
+}
+
+
+float4 UV_PS(VS_OUT IN,
+			uniform float4 ID):COLOR
+{
+  return float4(IN.texCoord.xyz, ID.x);
+  //return float4(ID.x,0,0,1);
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Distance.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Distance.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Distance.hlsl	(revision 1049)
@@ -0,0 +1,22 @@
+struct VS_OUT
+{
+	half4 hPosition	: POSITION;
+	half4 cPosition	: TEXCOORD0;
+};
+
+VS_OUT DistanceVS(float4 position : POSITION,	
+		uniform float4x4 worldView,
+		uniform float4x4 worldViewProj)
+{
+  VS_OUT OUT;
+  OUT.hPosition = mul(worldViewProj, position);
+  OUT.cPosition = mul(worldView, position);
+  return OUT;
+}
+
+
+float4 DistancePS(VS_OUT IN ):COLOR
+{
+//	return float4(1,1,0,1);
+  return length(IN.cPosition.xyz);	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Caustic.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Caustic.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_Caustic.hlsl	(revision 1049)
@@ -0,0 +1,50 @@
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 10000; ///sky
+	return dist;
+}
+
+struct VertOut
+{
+	float4 hPosition	:POSITION;	
+	float2 texCoord		:TEXCOORD;	
+	float3 wPosition	:TEXCOORD1;	
+};
+
+
+VertOut deaultVS(float4 position : POSITION,
+		float2 texCoord : TEXCOORD0,
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+  VertOut OUT;
+  OUT.texCoord = texCoord;
+  OUT.hPosition = mul(worldViewProj, position);  
+  OUT.wPosition = mul(world, position).xyz;
+  return OUT;    
+}
+
+float4 deaultPS(VertOut IN,
+				uniform samplerCUBE CubeMap : register(s0),
+				uniform samplerCUBE distanceCube : register(s1),
+				uniform float3 cubeMapCameraPosition,
+				uniform float attenuation):COLOR
+{
+	float4 Color = float4(1,1,1,1);	
+	
+	float3 dir = IN.wPosition - cubeMapCameraPosition;
+	float4 caustic = texCUBE(CubeMap, float3(dir.xy,-dir.z) );
+	float mydist = length(dir);
+	float dist = readDistanceCubeMap(distanceCube, dir);
+	
+	float EPSILON = 0.1;
+
+	//if(mydist > dist + EPSILON) caustic = 0;
+	 caustic *= max(attenuation - mydist, 0) / attenuation;
+		
+	Color = caustic;
+		
+	return Color;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CausticSoftShadow.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CausticSoftShadow.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_CausticSoftShadow.hlsl	(revision 1049)
@@ -0,0 +1,76 @@
+float4x4 world_IT;
+
+float3x3 TransfModelToTangent( in  half3 Tangent, in half3 Binormal, in half3 Normal ) {
+	half T2 = dot(Tangent, Tangent);
+	half B2 = dot(Binormal, Binormal);
+	half N2 = dot(Normal, Normal);
+	half BT = dot(Binormal, Tangent);
+	half det = B2 * T2 - BT * BT;
+
+	return float3x3( (B2 * Tangent - BT * Binormal)/det, 
+	                 (T2 * Binormal - BT * Tangent)/det, 
+	                 Normal/N2 );
+/*		                               		
+	// simplified solution
+	return float3x3(Tangent/T2, Binormal/B2, Normal/N2); 
+*/
+} 
+
+struct VertOut
+{
+	half4 hPosition	:POSITION;	
+	half2 texCoord		:TEXCOORD;	
+	half3 wPosition	:TEXCOORD1;	
+	half3 Normal		:TEXCOORD2;
+	half3 Tangent   : TEXCOORD3;	 // model space tangent vector
+    half3 Binormal  : TEXCOORD4;	 // model space binormal vector
+};
+
+
+VertOut deaultVS(half4 position : POSITION,
+		half3 normal:NORMAL,
+		half3 Tangent   : TEXCOORD1, 	 
+		half2 texCoord : TEXCOORD0,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+  VertOut OUT;
+  OUT.texCoord = texCoord;
+  OUT.hPosition = mul(worldViewProj, position);  
+  OUT.wPosition = mul(world, position).xyz;
+  OUT.Normal = normal;
+  OUT.Tangent = Tangent;  
+  OUT.Binormal = cross(Tangent, normal); 
+  return OUT;    
+}
+
+half4 deaultPS(VertOut IN,
+				uniform sampler2D Texture : register(s0),
+				uniform sampler2D NormalMap : register(s1),
+				uniform half3 lightPosition,
+				uniform half3 cameraPos
+				):COLOR
+{
+	half4 Color = half4(1,1,1,1);	
+///get normal
+	float3x3 ModelToTangent = float3x3(IN.Tangent, IN.Binormal, IN.Normal); 
+	//float3x3 ModelToTangent = TransfModelToTangent(IN.Tangent, IN.Binormal, IN.Normal );
+    half3 tNormal = tex2D(NormalMap, IN.texCoord).rgb;     	
+   
+   
+    half3 wNormal =mul(tNormal, ModelToTangent );
+    //wNormal = IN.Normal;
+    wNormal = normalize(mul( wNormal, world_IT ));
+///shading
+	half3 V = normalize(IN.wPosition - cameraPos);
+	half3 light = (lightPosition - IN.wPosition) / 200.0;
+	half3 L = normalize(light);
+	half3 H = normalize(L+V);
+	half4 lighting = lit(dot(wNormal, L),dot(wNormal, H), 80);
+	
+	half4 ambient = float4(0.1, 0.1, 0.1, 1.0);
+	
+	Color = tex2D(Texture, IN.texCoord) * (lighting.y  /*+ ambient*/) + lighting.z * half4(0.3,0.3,0.3,1); 
+	
+	return Color;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/DiffuseBump.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/DiffuseBump.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/DiffuseBump.hlsl	(revision 1049)
@@ -0,0 +1,193 @@
+float4x4 world_IT;
+int REDUCED_CUBEMAP_SIZE = 8;
+
+
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, - coord.z) );
+	return color;
+}
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 4000; ///sky
+	return dist;
+}
+
+// This function is called several times.
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+	float rl = readDistanceCubeMap( mp, R);				// |r|
+	
+	float ppp = length( x ) /  readDistanceCubeMap( mp, x);			// |p|/|p|
+	float dun = 0, pun = ppp, dov = 0, pov = 0;
+	float dl = rl * ( 1 - ppp );							// eq. 2
+	float3 l = x + R * dl;									// ray equation
+
+	// iteration
+	for( int i = 0; i < 2; i++ )	// 2 !!!!!!!!!!!!!!!!!!!!!!!
+	{
+		float llp = length( l ) / readDistanceCubeMap( mp, l);		// |l|/|l|
+		if ( llp < 0.999f )									// undershooting
+		{
+			dun = dl; pun = llp;							// last undershooting
+			dl += ( dov == 0 ) ? rl * ( 1 - llp ) :			// eq. 2
+				( dl - dov ) * ( 1 - llp ) / ( llp - pov );	// eq. 3
+		} else if ( llp > 1.001f )							// overshooting
+		{
+			dov = dl; pov = llp;							// last overshooting
+			dl += ( dl -dun ) * ( 1 - llp ) / ( llp - pun );// eq. 3
+		}
+		l = x + R * dl;										// ray equation
+	}
+	return l;												// computed hit point
+}
+
+float4 GetContibution(float3 L, float3 pos, float3 N, float3 V, samplerCUBE SmallEnvMapSampler, samplerCUBE DistanceEnvMapSampler)	// Phong-Blinn
+// L: a hossza lényeges (az egységkocka faláig ér)
+{
+    REDUCED_CUBEMAP_SIZE = 4;
+    float mindist = 1.0;
+    
+	float kd = 0.3;	// 0.3
+	float ks = 0;	// 0.5
+	float shininess = 10;
+	
+	float l = length(L);
+	L = normalize(L);
+
+	//dw
+	float dw = 4 / (REDUCED_CUBEMAP_SIZE*REDUCED_CUBEMAP_SIZE*l*l*l + 4/3.1416f);
+	//Lin
+	float4 Lin = readCubeMap(SmallEnvMapSampler, L);
+	//r
+	float doy = readDistanceCubeMap(DistanceEnvMapSampler, L);
+	float dxy = length(L * doy - pos);
+	
+	dxy = max(mindist, dxy);
+		
+
+	//dws
+	float dws = (doy*doy * dw) / (dxy*dxy*(1 - dw/3.1416f) + doy*doy*dw/3.1416f);	// localization:
+	//float dws = dw;
+	
+	//L = L * doy - pos;	// L: x->y, az objektumtól induljon, ne a középpontból
+	L = normalize(L);
+	float3 H = normalize(L + V);	// felezõvektor
+
+	float a = kd * max(dot(N,L),0) + 
+			  ks * pow(max(dot(N,H),0), shininess); // diffuse + specular
+
+	// 1.: eddigi
+	//return Lin * a * dws;
+	
+	float ctheta_in = dot(N,L);
+	float ctheta_out = dot(N,V);	
+	
+	return Lin * a * dws;		
+}
+
+void DiffuseVS(float4 position : POSITION,
+		float3 normal   : NORMAL,
+		half3 tangent   : TEXCOORD1, 
+		float2 texCoord : TEXCOORD0,
+		out float2 otexCoord : TEXCOORD0,
+		out float3 wPos	: TEXCOORD1,				
+		out float3 mNormal  : TEXCOORD2,
+		out half3 Tangent   : TEXCOORD3,	 
+		out half3 Binormal  : TEXCOORD4,	 
+		out float4 hPos : POSITION,		
+		uniform float4x4 worldViewProj,
+		uniform float4x4 world)
+{
+ 
+  hPos = mul(worldViewProj, position);
+  wPos = mul(world, position).xyz;  
+  //mNormal = mul(normal, world_IT);
+  mNormal = normal;
+  otexCoord = texCoord;
+  Tangent = tangent;  
+  Binormal = cross(tangent, normal); 
+}
+
+float4 DiffusePS( float2 Tex : TEXCOORD0,
+           float3 pos : TEXCOORD1,
+           float3 N : TEXCOORD2,
+           half3 Tangent   : TEXCOORD3,	 
+		   half3 Binormal  : TEXCOORD4,
+           uniform float3 cameraPos,
+           uniform float3 lastCenter,
+           uniform half3 lightPosition,				
+           uniform samplerCUBE SmallEnvMapSampler : register(s0),
+           uniform samplerCUBE DistanceEnvMapSampler : register(s1),
+		   uniform sampler2D ColorTexture : register(s2),
+		   uniform sampler2D NormalMap : register(s3)				
+            ) : COLOR0
+{
+    REDUCED_CUBEMAP_SIZE = 4;
+	
+    //V = /*-*/normalize( V );
+    float3 V = normalize(pos - cameraPos);	// 
+    
+    float3x3 ModelToTangent = float3x3(Tangent, Binormal, N); 
+	half3 tNormal = tex2D(NormalMap, Tex).rgb;     	
+      
+    N =mul(tNormal, ModelToTangent );
+    N = mul( N, world_IT );
+    N = normalize(N);
+    
+    float3 R = reflect(V, N);
+    pos -= lastCenter;	
+        
+    float4 intens = 0;
+    
+	
+	for (int x = 0; x < REDUCED_CUBEMAP_SIZE; x++)			// az envmap minden texelére
+	 for (int y = 0; y < REDUCED_CUBEMAP_SIZE; y++)
+	 {
+		// intenzitás kiolvasása az adott texelbõl 
+		
+		float2 p, tpos; 
+	    tpos.x = x/(float)REDUCED_CUBEMAP_SIZE;	// 0..1
+	    tpos.y = y/(float)REDUCED_CUBEMAP_SIZE;	// 0..1
+	    tpos.xy += float2(0.5/REDUCED_CUBEMAP_SIZE, 0.5/REDUCED_CUBEMAP_SIZE);	// az adott texel középpont uv koordinátái
+	    
+	    p.x = tpos.x; 
+	    p.y = 1-tpos.y;
+	    p.xy = 2*p.xy - 1;	// -1..1	// az adott texel középpont pozíciója
+	    
+	    float3 L;
+	    
+		L = float3(p.x, p.y, 1);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, p.y, -1);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, 1, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(p.x, -1, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(1, p.x, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+		
+		L = float3(-1, p.x, p.y);
+		intens += GetContibution( L, pos, N, V, SmallEnvMapSampler, DistanceEnvMapSampler);
+	}
+	
+	half3 light = lightPosition;
+	half3 L = normalize(light);
+	half3 H = normalize(L + V);
+	half4 lighting = lit(dot(N, L),dot(N, H), 20);
+
+	float4 retColor = intens;
+	float4 texColor = tex2D(ColorTexture, Tex);
+	retColor = intens * texColor * 1.5
+			  + lighting.y * texColor * 0.15 
+			  + lighting.z * 0.15			
+			 ;
+	return retColor;
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_LocalizedBump_EnvMap.hlsl
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_LocalizedBump_EnvMap.hlsl	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/materials/programs/GameTools_LocalizedBump_EnvMap.hlsl	(revision 1049)
@@ -0,0 +1,340 @@
+//metal:
+float3 n, k;	// R 700 nm, G 550 nm, B 435 nm 
+float3 F0;
+/*
+	
+	// copper	
+		n = float3(0.21f, 0.96f, 1.17f);	
+		k = float3(4.16f, 2.57f, 2.32f); }
+	// gold
+		n = float3(0.16f, 0.35f, 1.6f);		
+		k = float3(3.98f, 2.71f, 1.92f); }
+	// silver
+		n = float3(0.142f, 0.124f, 0.158f);	
+		k = float3(4.52f,  3.33f, 2.32f); }
+	// alu
+		n = float3(1.83f, 0.96f, 0.577f);
+		k = float3(8.31f,  6.69f, 5.288f); }
+
+*/	
+
+// material constants
+const float3 ambientMaterial= float3(0.3, 0.3, 0.3);
+const float3 diffuseMaterial = float3(1.0, 1.0, 1.0);	
+const float3 specularMaterial = float3(1.0, 1.0, 1.0);
+
+//------------------------------------------------------------------------------------
+void DISCARD_BY_TEX(float2 Tex)
+{
+	if (Tex.x > 1 || Tex.x < 0 || Tex.y > 1 || Tex.y < 0)
+		discard;
+}
+
+//------------------------------------------
+// Attenuation with the square of the distance
+//------------------------------------------
+float SQR(float x) { return x*x; }
+float Attenuation(float3 Light)
+{
+	return 1.0 / dot(Light, Light);
+}
+
+//-----------------------------------------------------------------------------
+// Illumination function used in shading: all input vectors are normalized
+//-----------------------------------------------------------------------------
+/*
+float4 Illumination(float3 Light, float3 Normal, float3 View, float2 TexCoord, float Attenuation)
+{
+	// Blinn lighting
+	float3 Half = normalize(Light + View);
+	float Diffuse = dot(Normal, Light);
+	float Specular = dot(Normal, Half);
+	float4 Lighting = lit(Diffuse, Specular, 16);
+	float4 Color= tex2D(ColorMapSampler, TexCoord);
+
+	return float4(
+		Lighting.x * ambientMaterial * Color +
+		(Lighting.y * diffuseMaterial * Color +
+		Lighting.z * specularMaterial) * Attenuation, 1);
+}*/
+
+//-----------------------------------------------------------------------------
+// Computes transformation matrix from modeling to tangent space
+//-----------------------------------------------------------------------------
+float3x3 TransfModelToTangent( in  float3 Tangent, in float3 Binormal, in float3 Normal ) {
+	float T2 = dot(Tangent, Tangent);
+	float B2 = dot(Binormal, Binormal);
+	float N2 = dot(Normal, Normal);
+	float BT = dot(Binormal, Tangent);
+	float det = B2 * T2 - BT * BT;
+
+	return float3x3( (B2 * Tangent - BT * Binormal)/det, 
+	                 (T2 * Binormal - BT * Tangent)/det, 
+	                 Normal/N2 );
+/*		                               		
+	// simplified solution
+	return float3x3(Tangent/T2, Binormal/B2, Normal/N2); 
+*/
+} 
+
+float4 readCubeMap(samplerCUBE cm, float3 coord)		
+{
+	float4 color = texCUBE( cm, float3(coord.xy, - coord.z) );
+	return color;
+}
+
+float readDistanceCubeMap(samplerCUBE dcm, float3 coord)		
+{
+	float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).r;
+	if(dist == 0) dist = 10000; ///sky
+	return dist;
+}
+
+// This function is called several times.
+float3 Hit( float3 x, float3 R, samplerCUBE mp )
+{
+	float rl = readDistanceCubeMap( mp, R);				// |r|
+	
+	float ppp = length( x ) /  readDistanceCubeMap( mp, x);			// |p|/|p|
+	float dun = 0, pun = ppp, dov = 0, pov = 0;
+	float dl = rl * ( 1 - ppp );							// eq. 2
+	float3 l = x + R * dl;									// ray equation
+
+	// iteration
+	for( int i = 0; i < 6; i++ )	// 2 !!!!!!!!!!!!!!!!!!!!!!!
+	{
+		float llp = length( l ) / readDistanceCubeMap( mp, l);		// |l|/|l|
+		if ( llp < 0.999f )									// undershooting
+		{
+			dun = dl; pun = llp;							// last undershooting
+			dl += ( dov == 0 ) ? rl * ( 1 - llp ) :			// eq. 2
+				( dl - dov ) * ( 1 - llp ) / ( llp - pov );	// eq. 3
+		} else if ( llp > 1.001f )							// overshooting
+		{
+			dov = dl; pov = llp;							// last overshooting
+			dl += ( dl -dun ) * ( 1 - llp ) / ( llp - pun );// eq. 3
+		}
+		l = x + R * dl;										// ray equation
+	}
+	return l;												// computed hit point
+}
+
+float4 metal_reflectivity(float3 L, float3 N, float3 V)
+{
+	
+	
+	float ctheta_in = dot(N,L);
+	float ctheta_out = dot(N,V);
+
+	float4 intens = 0;
+	
+	// F,P,G számítása
+	if ( ctheta_in > 0 && ctheta_out > 0 )
+	{
+		float3 H = normalize(L + V);	// felezõvektor
+		float calpha = dot(N,H);
+		float cbeta  = dot(H,L);
+		
+		float3 F = ( (n-1)*(n-1) + pow(1-cbeta,5) * 4*n + k*k) / ( (n+1)*(n+1) + k*k );
+
+		float m = 0.8;
+		float m2 = m*m;
+		float PI = 3.14159f;
+
+		float calpha2 = calpha*calpha;
+		float salpha2 = 1-calpha2;
+		
+		float P = exp( -( salpha2 / calpha2 / m2 )) / (m2 * PI * calpha * calpha2);
+		
+		float f1 = 2*calpha*ctheta_out/cbeta;
+		float f2 = 2*calpha*ctheta_in /cbeta;
+		float G = min(1, min( f1, f2 )) / 4 / ctheta_in / ctheta_out;
+		//float GG = 1 / (4*cbeta*cbeta);
+
+		//F*P*G*ctheta_in		
+		intens += float4(F, 1) * P * G * ctheta_in;
+	}
+	
+	return 3*intens;
+}
+
+float3 expand(float3 v)
+{
+	return (v - 0.5) * 2;
+}
+
+float2 PARALLAX_MAPPING(sampler2D heightMap, float2 TexCoord, float3 View)
+{
+	float HEIGHT_SCALE = 0.06;
+	float HEIGHT_BIAS = -0.12;
+    float h = tex2D(heightMap, TexCoord).r * HEIGHT_SCALE + HEIGHT_BIAS;
+    return TexCoord + h * View.xy / View.z;
+} 
+
+struct VS_INPUT {
+    float4 Position  : POSITION;     // point in modeling space
+    float2 TexCoord	 : TEXCOORD0;    // texture coordinates
+    float3 Tangent   : TEXCOORD1;  	 // model space tangent vector
+    float3 Normal    : NORMAL;		 // model space triangle normal vector
+};
+
+struct VS_OUTPUT {
+    float4 hPosition : POSITION;     // point in normalized device space before homogeneous division
+    float2 TexCoord  : TEXCOORD0;    // texture coordinates
+    float3 Normal    : TEXCOORD1;	 // model space triangle normal vector
+    float3 wPosition : TEXCOORD2;	 // model space tangent vector
+	float3 Tangent   : TEXCOORD3;	 // model space tangent vector
+    float3 Binormal  : TEXCOORD4;	 // model space binormal vector
+}; 
+
+VS_OUTPUT LocalizedBumpVS(VS_INPUT IN,
+		uniform float4x4 worldViewProj,
+		uniform float4x4 worldViewIT,
+		uniform float4x4 world)
+{
+  VS_OUTPUT OUT;
+  OUT.hPosition = mul(worldViewProj, IN.Position);
+  OUT.wPosition = mul(world, IN.Position).xyz;  
+  //OUT.Normal = mul(worldViewIT, IN.Normal);
+  OUT.Normal = IN.Normal;
+  OUT.TexCoord = IN.TexCoord;
+  OUT.Tangent = IN.Tangent;  
+  OUT.Binormal = cross(IN.Tangent, IN.Normal); 
+  
+  return OUT;
+}
+
+//////////////
+//Localized reflection with bump
+//////////////
+/*
+VS_OUTPUT BaseVS(VS_INPUT IN)
+{
+        VS_OUTPUT OUT;
+
+		
+		OUT.Tangent = IN.Tangent;
+		OUT.Binormal = IN.Binormal;
+		OUT.Normal = IN.Normal;
+		
+        // vertex position before homogenious division
+        OUT.hPosition = mul(IN.Position, WorldViewProj);
+		// tex coordinates passed to pixel shader
+        OUT.TexCoord = IN.TexCoord0;
+
+		return OUT;
+} 
+float4 BumpPS(VS_OUTPUT IN) : COLOR
+{
+  
+    // get model space normal vector
+	float3x3 ModelToTangent = TransfModelToTangent(IN.Tangent, IN.Binormal, IN.Normal );
+    // get model space normal vector
+    float3 tNormal = tex2D(BumpMapSampler, IN.TexCoord).rgb;
+	// Normal vector should be transformed with the inverse transpose of TangentToModel
+	// which is the transpose of ModelToTangent
+    float3 mNormal = normalize( mul( tNormal, ModelToTangent ) );     
+    
+}
+*/
+
+void LocalizedBumpPS(  VS_OUTPUT IN,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform sampler2D NormalMap : register(s2),
+		uniform sampler2D DisplacementMap : register(s3),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,		
+		out float4 Color :COLOR0)
+{
+	// get model space normal vector
+	float3x3 ModelToTangent = TransfModelToTangent(IN.Tangent, IN.Binormal, IN.Normal );
+    // get model space normal vector
+	
+	//parallax
+	/*
+	float3 tView = mul(ModelToTangent, IN.wPosition ); 
+    float2 ParallaxTex = PARALLAX_MAPPING(DisplacementMap, IN.TexCoord, tView);
+    float3 tNormal = tex2D(NormalMap, ParallaxTex).rgb;	
+    */ 
+        
+    float3 tNormal = tex2D(NormalMap, IN.TexCoord).rgb;    	
+    float3 mNormal = normalize( mul( tNormal, ModelToTangent ) );
+        
+   //Color = float4(tex2D(DisplacementMap, IN.TexCoord).rgb, 1 + lastCenter.x * 0.000000001);
+	Color = float4(1,1,1,1); 
+	
+	float3 RR, TT;	
+	float3 mPos = IN.wPosition - lastCenter;
+	float3 V = normalize(IN.wPosition - cameraPos);
+	float3 R = (reflect( V, mNormal));
+	
+	float3 T = refract(V, mNormal, 0.9);
+		
+	RR = R;	TT = T;
+	RR = Hit(mPos, R, DistanceMap);
+	TT = Hit(mPos, T, DistanceMap);
+	
+	float4 reflectcolor = readCubeMap(CubeMap, RR );		
+	float4 refractcolor = readCubeMap(CubeMap, TT );		
+	
+	float cos_theta = -dot(V, mNormal);
+	float sFresnel = 0.4;
+	float F = (sFresnel + pow(1-cos_theta, 5.0f) * (1-sFresnel));
+    
+    float3 L = normalize(lightPosition - IN.wPosition);
+	float3 H = normalize(L+V);
+	float4 lighting = lit(dot(mNormal, L),dot(mNormal, H), 30);
+	Color = (F * reflectcolor + (1-F) * refractcolor)/* + lighting.z *1000*/;	
+}
+
+
+//////////////
+//Metal
+//////////////
+void LocalizedMetalPS(  float2 texCoord : TEXCOORD0, 
+		float3 wPos	: TEXCOORD1,	
+		float3 mNormal  : TEXCOORD2,
+		uniform float3 cameraPos,
+		uniform samplerCUBE CubeMap : register(s0),
+		uniform samplerCUBE DistanceMap : register(s1),
+		uniform float3 lastCenter,
+		uniform float3 lightPosition,				
+		out float4 Color :COLOR0)
+{
+	
+	Color = float4(1,1,1,1);
+	
+	mNormal = normalize(mNormal);
+	float3 newTexCoord;	
+	float3 mPos = wPos - lastCenter;
+	float3 V = normalize(wPos - cameraPos);
+	float3 R = normalize(reflect( V, mNormal));
+		
+	newTexCoord = R;	
+	
+	newTexCoord = Hit(mPos, R, DistanceMap);
+	
+	Color = readCubeMap(CubeMap, newTexCoord );	
+	
+	float ctheta_in = dot(mNormal,R);
+	float ctheta_out = dot(mNormal,-V);
+
+	float3 F = 0;
+	
+	// F,P,G számítása
+	if ( ctheta_in > 0 && ctheta_out > 0 )
+	{
+		float3 H = normalize(R - V);	// felezõvektor
+		float cbeta  = dot(H,R);		
+		//F = ( (n-1)*(n-1) + pow(1-cbeta,5) * 4*n + k*k) / ( (n+1)*(n+1) + k*k );
+		//float3 F0 = ((n-1)*(n-1) + k*k) / ( (n+1)*(n+1) + k*k );
+		//float3 F1 = float3(1.0f,1.0f,1.0f) - F0;
+		F = F0 + (1-F0)*pow(1-cbeta,5);
+	}
+	
+	//Color *= metal_reflectivity(R, mNormal, -V);
+	
+	Color = Color * float4(F,1);	
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/particle/Particles.particle
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/particle/Particles.particle	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/particle/Particles.particle	(revision 1049)
@@ -0,0 +1,41 @@
+CarDemo_Fire
+{
+	renderer sprite
+	material        Fire
+    particle_width  1.5
+    particle_height 1.5
+    cull_each       false
+    quota           3000
+    billboard_type  point
+    
+    // Area emitter
+    emitter Point
+    {
+        colour_range_start 1 1 1 0.2
+		colour_range_end 0.8 1 0.5 0
+
+        emission_rate   0
+        time_to_live    0.8
+        direction       0 1 0
+        angle           80
+        velocity    	3.0       
+    } 
+    
+    affector Scaler
+	{
+		rate 10
+	}
+   
+
+    affector ColourFader2
+    {
+       alpha1 +1.5
+       alpha2 -3.5
+       state_change 0.4
+    }
+    
+   
+
+}
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/particle/GameTools.particle
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/particle/GameTools.particle	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/particle/GameTools.particle	(revision 1049)
@@ -0,0 +1,43 @@
+GameTools/DemoParticle1
+{
+	renderer sprite
+	material        GameTools/SpriteShader
+    particle_width  200
+    particle_height 200
+    cull_each       false
+    quota           30
+    billboard_type  point
+    
+    // Area emitter
+    emitter Box
+    {
+       // colour 0.7 0.8 0.3 0
+        colour_range_start 1 1 1 0
+		colour_range_end 0.8 1 0.5 0
+
+        angle           30
+        emission_rate   6
+        time_to_live    3
+        direction       0 1 0
+        velocity    	0
+        width           120
+        height          120
+        depth           30
+    }
+
+    // Make em float upwards
+    affector LinearForce
+    {
+        force_vector      0 40 0
+        force_application add
+    }
+
+    affector ColourFader2
+    {
+       alpha1 +0.5
+       alpha2 -0.5
+       state_change 0.5
+    }
+}
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUILayout.xsd
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUILayout.xsd	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUILayout.xsd	(revision 1049)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:element name="GUILayout" type="GUILayoutType"/>
+	
+	<xsd:complexType name="GUILayoutType">
+		<xsd:sequence>
+			<xsd:element name="Window" type="WindowType" />
+		</xsd:sequence>
+		<xsd:attribute name="Parent" type="xsd:string" use="optional" default=""/>
+	</xsd:complexType>
+	
+	<xsd:complexType name="WindowType">
+		<xsd:sequence>
+			<xsd:element name="LayoutImport" type="LayoutImportType"  minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="Property" type="PropertyType"  minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="Event" type="EventType"  minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="Window" type="WindowType"  minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="Property" type="PropertyType"  minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="Type" type="xsd:string" use="required"/>
+		<xsd:attribute name="Name" type="xsd:string" use="required"/>
+	</xsd:complexType>
+
+	<xsd:complexType name="PropertyType">
+		<xsd:attribute name="Name" type="xsd:string" use="required"/>
+		<xsd:attribute name="Value" type="xsd:string" use="required"/>
+	</xsd:complexType>
+
+	<xsd:complexType name="LayoutImportType">
+		<xsd:attribute name="Filename" type="xsd:string" use="required"/>
+		<xsd:attribute name="Prefix" type="xsd:string" use="optional" default="" />
+		<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
+	</xsd:complexType>
+
+	<xsd:complexType name="EventType">
+		<xsd:attribute name="Name" type="xsd:string" use="required"/>
+		<xsd:attribute name="Function" type="xsd:string" use="required"/>
+	</xsd:complexType>
+
+</xsd:schema>
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.imageset
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.imageset	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.imageset	(revision 1049)
@@ -0,0 +1,233 @@
+<?xml version="1.0" ?>
+<Imageset Name="TaharezLook" Imagefile="TaharezLook.tga" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
+	<Image Name="ClientBrush" XPos="2" YPos="2" Width="64" Height="64" />
+	<Image Name="WindowLeftEdge" XPos="6" YPos="95" Width="1" Height="22" XOffset="4" />
+	<Image Name="WindowRightEdge" XPos="34" YPos="95" Width="1" Height="22" XOffset="-5" />
+	<Image Name="WindowTopEdge" XPos="9" YPos="68" Width="23" Height="1" />
+	<Image Name="WindowBottomEdge" XPos="9" YPos="143" Width="23" Height="1" />
+	<Image Name="WindowTopLeft" XPos="2" YPos="68" Width="5" Height="24" />
+	<Image Name="WindowTopRight" XPos="34" YPos="68" Width="5" Height="24" />
+	<Image Name="WindowBottomLeft" XPos="2" YPos="120" Width="5" Height="24" />
+	<Image Name="WindowBottomRight" XPos="34" YPos="120" Width="5" Height="24" />
+	<Image Name="ButtonLeftNormal" XPos="68" YPos="20" Width="12" Height="16" />
+	<Image Name="ButtonMiddleNormal" XPos="82" YPos="20" Width="12" Height="16" />
+	<Image Name="ButtonRightNormal" XPos="96" YPos="20" Width="12" Height="16" />
+	<Image Name="ButtonLeftPushed" XPos="68" YPos="38" Width="12" Height="16" />
+	<Image Name="ButtonMiddlePushed" XPos="82" YPos="38" Width="12" Height="16" />
+	<Image Name="ButtonRightPushed" XPos="96" YPos="38" Width="12" Height="16" />
+	<Image Name="ButtonLeftHighlight" XPos="68" YPos="56" Width="12" Height="16" />
+	<Image Name="ButtonMiddleHighlight" XPos="82" YPos="56" Width="12" Height="16" />
+	<Image Name="ButtonRightHighlight" XPos="96" YPos="56" Width="12" Height="16" />
+	<Image Name="CheckboxNormal" XPos="110" YPos="2" Width="12" Height="12" />
+	<Image Name="CheckboxHover" XPos="110" YPos="30" Width="12" Height="12" />
+	<Image Name="CheckboxMark" XPos="110" YPos="16" Width="12" Height="12" />
+	<Image Name="RadioButtonNormal" XPos="124" YPos="2" Width="12" Height="12" />
+	<Image Name="RadioButtonHover" XPos="124" YPos="30" Width="12" Height="12" />
+	<Image Name="RadioButtonMark" XPos="124" YPos="16" Width="12" Height="12" />
+	<Image Name="TitlebarLeft" XPos="68" YPos="2" Width="8" Height="16" />
+	<Image Name="TitlebarMiddle" XPos="78" YPos="2" Width="8" Height="16" />
+	<Image Name="TitlebarRight" XPos="88" YPos="2" Width="8" Height="16" />
+	<Image Name="NewTitlebarLeft" XPos="61" YPos="127" Width="13" Height="16" />
+	<Image Name="NewTitlebarMiddle" XPos="77" YPos="127" Width="12" Height="16" />
+	<Image Name="NewTitlebarRight" XPos="92" YPos="127" Width="12" Height="16" />
+	<Image Name="SysAreaMiddle" XPos="107" YPos="127" Width="12" Height="16" />
+	<Image Name="SysAreaRight" XPos="122" YPos="127" Width="13" Height="16" />
+	<Image Name="StaticLeft" XPos="41" YPos="89" Width="6" Height="6" />
+	<Image Name="StaticRight" XPos="63" YPos="89" Width="6" Height="6" />
+	<Image Name="StaticTop" XPos="52" YPos="78" Width="6" Height="6" />
+	<Image Name="StaticBottom" XPos="52" YPos="100" Width="6" Height="6" />
+	<Image Name="StaticTopLeft" XPos="41" YPos="78" Width="6" Height="6" />
+	<Image Name="StaticTopRight" XPos="63" YPos="78" Width="6" Height="6" />
+	<Image Name="StaticBottomLeft" XPos="41" YPos="100" Width="6" Height="6" />
+	<Image Name="StaticBottomRight" XPos="63" YPos="100" Width="6" Height="6" />
+	<Image Name="StaticBackdrop" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="ProgressBarLeft" XPos="71" YPos="74" Width="7" Height="12" />
+	<Image Name="ProgressBarMiddle" XPos="80" YPos="74" Width="6" Height="12" />
+	<Image Name="ProgressBarRight" XPos="88" YPos="74" Width="6" Height="12" />
+	<Image Name="ProgressBarDimSegment" XPos="96" YPos="74" Width="8" Height="12" />
+	<Image Name="ProgressBarLitSegment" XPos="106" YPos="74" Width="8" Height="12" />
+	<Image Name="EditBoxLeft" XPos="41" YPos="108" Width="4" Height="18" />
+	<Image Name="EditBoxMiddle" XPos="47" YPos="108" Width="4" Height="18" />
+	<Image Name="EditBoxRight" XPos="53" YPos="108" Width="4" Height="18" />
+	<Image Name="EditBoxCarat" XPos="60" YPos="108" Width="4" Height="18" />
+	<Image Name="SpinnerUpNormal" XPos="68" YPos="110" Width="10" Height="6" />
+	<Image Name="SpinnerDownNormal" XPos="68" YPos="118" Width="10" Height="6" />
+	<Image Name="SpinnerUpHover" XPos="82" YPos="110" Width="10" Height="6" />
+	<Image Name="SpinnerDownHover" XPos="82" YPos="118" Width="10" Height="6" />
+	<Image Name="TextSelectionBrush" XPos="8" YPos="70" Width="16" Height="16" />
+	<Image Name="VertScrollTop" XPos="182" YPos="2" Width="20" Height="8" />
+	<Image Name="VertScrollMiddle" XPos="182" YPos="12" Width="20" Height="8" />
+	<Image Name="VertScrollBottom" XPos="182" YPos="22" Width="20" Height="8" />
+	<Image Name="VertScrollBarSegment" XPos="206" YPos="2" Width="4" Height="10" />
+	<Image Name="VertScrollThumbNormal" XPos="214" YPos="2" Width="8" Height="24" />
+	<Image Name="VertScrollThumbHover" XPos="224" YPos="2" Width="8" Height="24" />
+	<Image Name="VertScrollUpNormal" XPos="196" YPos="32" Width="12" Height="12" />
+	<Image Name="VertScrollDownNormal" XPos="182" YPos="32" Width="12" Height="12" />
+	<Image Name="VertScrollUpHover" XPos="196" YPos="46" Width="12" Height="12" />
+	<Image Name="VertScrollDownHover" XPos="182" YPos="46" Width="12" Height="12" />
+	<Image Name="MiniVertScrollBarSegment" XPos="207" YPos="60" Width="4" Height="10" />
+	<Image Name="MiniVertScrollThumbNormal" XPos="214" YPos="59" Width="7" Height="22" />
+	<Image Name="MiniVertScrollThumbTopNormal" XPos="214" YPos="59" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbMiddleNormal" XPos="214" YPos="65" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbBottomNormal" XPos="214" YPos="76" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbTopHover" XPos="223" YPos="59" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbMiddleHover" XPos="223" YPos="65" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbBottomHover" XPos="223" YPos="76" Width="7" Height="5" />
+	<Image Name="MiniVertScrollThumbHover" XPos="223" YPos="59" Width="7" Height="22" />
+	<Image Name="MiniVertScrollUpNormal" XPos="194" YPos="60" Width="10" Height="9" />
+	<Image Name="MiniVertScrollDownNormal" XPos="182" YPos="59" Width="10" Height="9" />
+	<Image Name="MiniVertScrollUpHover" XPos="194" YPos="70" Width="10" Height="9" />
+	<Image Name="MiniVertScrollDownHover" XPos="182" YPos="69" Width="10" Height="9" />
+	<Image Name="VertSliderBody" XPos="234" YPos="2" Width="9" Height="48" />
+	<Image Name="VertSliderThumbNormal" XPos="217" YPos="28" Width="15" Height="6" />
+	<Image Name="VertSliderThumbHover" XPos="217" YPos="36" Width="15" Height="6" />
+	<Image Name="MiniHorzScrollBarSegment" XPos="244" YPos="80" Width="10" Height="4" />
+	<Image Name="MiniHorzScrollThumbNormal" XPos="233" YPos="87" Width="22" Height="7" />
+	<Image Name="MiniHorzScrollThumbLeftNormal" XPos="233" YPos="87" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollThumbMiddleNormal" XPos="239" YPos="87" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollThumbRightNormal" XPos="250" YPos="87" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollThumbHover" XPos="233" YPos="96" Width="22" Height="7" />
+	<Image Name="MiniHorzScrollThumbLeftHover" XPos="233" YPos="96" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollThumbMiddleHover" XPos="239" YPos="96" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollThumbRightHover" XPos="250" YPos="96" Width="5" Height="7" />
+	<Image Name="MiniHorzScrollLeftNormal" XPos="246" YPos="55" Width="9" Height="10" />
+	<Image Name="MiniHorzScrollRightNormal" XPos="245" YPos="67" Width="9" Height="10" />
+	<Image Name="MiniHorzScrollLeftHover" XPos="236" YPos="55" Width="9" Height="10" />
+	<Image Name="MiniHorzScrollRightHover" XPos="235" YPos="67" Width="9" Height="10" />
+	<Image Name="ListboxLeft" XPos="41" YPos="89" Width="7" Height="6" />
+	<Image Name="ListboxRight" XPos="62" YPos="89" Width="7" Height="6" />
+	<Image Name="ListboxTop" XPos="52" YPos="78" Width="6" Height="7" />
+	<Image Name="ListboxBottom" XPos="52" YPos="99" Width="6" Height="7" />
+	<Image Name="ListboxTopLeft" XPos="41" YPos="78" Width="7" Height="7" />
+	<Image Name="ListboxTopRight" XPos="62" YPos="78" Width="7" Height="7" />
+	<Image Name="ListboxBottomLeft" XPos="41" YPos="99" Width="7" Height="7" />
+	<Image Name="ListboxBottomRight" XPos="62" YPos="99" Width="7" Height="7" />
+	<Image Name="ListboxBackdrop" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="ListboxSelectionBrush" XPos="8" YPos="70" Width="16" Height="16" />
+	<Image Name="ComboboxEditLeft" XPos="138" YPos="2" Width="8" Height="16" />
+	<Image Name="ComboboxEditMiddle" XPos="148" YPos="2" Width="8" Height="16" />
+	<Image Name="ComboboxListButtonNormal" XPos="158" YPos="2" Width="16" Height="16" />
+	<Image Name="ComboboxListButtonHover" XPos="158" YPos="20" Width="16" Height="16" />
+	<Image Name="ComboboxListLeft" XPos="138" YPos="48" Width="8" Height="8" />
+	<Image Name="ComboboxListRight" XPos="158" YPos="48" Width="8" Height="8" />
+	<Image Name="ComboboxListTop" XPos="148" YPos="48" Width="8" Height="8" />
+	<Image Name="ComboboxListBottom" XPos="148" YPos="58" Width="8" Height="8" />
+	<Image Name="ComboboxListTopLeft" XPos="138" YPos="38" Width="8" Height="8" />
+	<Image Name="ComboboxListTopRight" XPos="158" YPos="38" Width="8" Height="8" />
+	<Image Name="ComboboxListBottomLeft" XPos="138" YPos="58" Width="8" Height="8" />
+	<Image Name="ComboboxListBottomRight" XPos="158" YPos="58" Width="8" Height="8" />
+	<Image Name="ComboboxListBackdrop" XPos="148" YPos="48" Width="8" Height="8" />
+	<Image Name="ComboboxSelectionBrush" XPos="8" YPos="70" Width="16" Height="16" />
+	<Image Name="ComboboxDividerLeft" XPos="138" YPos="68" Width="14" Height="1" />
+	<Image Name="ComboboxDividerMiddle" XPos="154" YPos="68" Width="8" Height="1" />
+	<Image Name="ComboboxDividerRight" XPos="164" YPos="68" Width="14" Height="1" />
+	<Image Name="HeaderBarBackdropNormal" XPos="230" YPos="163" Width="10" Height="12" />
+	<Image Name="HeaderBarBackdropHover" XPos="230" YPos="163" Width="10" Height="12" />
+	<Image Name="HeaderBarSplitterNormal" XPos="225" YPos="92" Width="3" Height="16" />
+	<Image Name="HeaderBarSplitterHover" XPos="200" YPos="92" Width="3" Height="16" />
+	<Image Name="HeaderBarSortUp" XPos="233" YPos="178" Width="8" Height="8" />
+	<Image Name="HeaderBarSortDown" XPos="244" YPos="178" Width="8" Height="8" />
+	<Image Name="MultiListLeft" XPos="170" YPos="92" Width="7" Height="6" />
+	<Image Name="MultiListRight" XPos="191" YPos="92" Width="7" Height="6" />
+	<Image Name="MultiListTop" XPos="181" YPos="81" Width="6" Height="7" />
+	<Image Name="MultiListBottom" XPos="181" YPos="102" Width="6" Height="7" />
+	<Image Name="MultiListTopLeft" XPos="170" YPos="81" Width="7" Height="7" />
+	<Image Name="MultiListTopRight" XPos="191" YPos="81" Width="7" Height="7" />
+	<Image Name="MultiListBottomLeft" XPos="170" YPos="102" Width="7" Height="7" />
+	<Image Name="MultiListBottomRight" XPos="191" YPos="102" Width="7" Height="7" />
+	<Image Name="MultiListBackdrop" XPos="181" YPos="92" Width="6" Height="6" />
+	<Image Name="MultiListSelectionBrush" XPos="9" YPos="71" Width="14" Height="14" />
+	<Image Name="AltProgressLeft" XPos="71" YPos="88" Width="8" Height="12" />
+	<Image Name="AltProgressMiddle" XPos="81" YPos="88" Width="8" Height="12" />
+	<Image Name="AltProgressRight" XPos="91" YPos="88" Width="8" Height="12" />
+	<Image Name="AltProgressQuarter" XPos="102" YPos="89" Width="3" Height="4" />
+	<Image Name="AltProgressHalf" XPos="109" YPos="89" Width="4" Height="5" />
+	<Image Name="AltProgressLight1" XPos="100" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight2" XPos="106" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight3" XPos="112" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight4" XPos="118" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight5" XPos="124" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight6" XPos="130" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight7" XPos="136" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight8" XPos="142" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight9" XPos="148" YPos="97" Width="4" Height="8" />
+	<Image Name="AltProgressLight10" XPos="154" YPos="97" Width="4" Height="8" />
+	<Image Name="CloseButtonNormal" XPos="41" YPos="128" Width="16" Height="16" />
+	<Image Name="CloseButtonHover" XPos="41" YPos="146" Width="16" Height="16" />
+	<Image Name="CloseButtonPressed" XPos="41" YPos="164" Width="16" Height="16" />
+	<Image Name="NewCloseButtonNormal" XPos="90" YPos="146" Width="10" Height="10" />
+	<Image Name="NewCloseButtonHover" XPos="90" YPos="146" Width="10" Height="10" />
+	<Image Name="NewCloseButtonPressed" XPos="90" YPos="146" Width="10" Height="10" />
+	<Image Name="MultiLineEditboxLeft" XPos="41" YPos="89" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxRight" XPos="63" YPos="89" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxTop" XPos="52" YPos="78" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxBottom" XPos="52" YPos="100" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxTopLeft" XPos="41" YPos="78" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxTopRight" XPos="63" YPos="78" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxBottomLeft" XPos="41" YPos="100" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxBottomRight" XPos="63" YPos="100" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxBackdrop" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="MultiLineEditboxSelectionBrush" XPos="9" YPos="71" Width="14" Height="14" />
+	<Image Name="MouseTarget" XPos="182" YPos="127" Width="17" Height="17" XOffset="-8" YOffset="-8" />
+	<Image Name="MouseArrow" XPos="138" YPos="127" Width="31" Height="25" XOffset="0" YOffset="0" />
+	<Image Name="MouseMoveCursor" XPos="201" YPos="127" Width="18" Height="18" XOffset="-8" YOffset="-8" />
+	<Image Name="MouseNoSoCursor" XPos="221" YPos="127" Width="8" Height="18" XOffset="-3" YOffset="-8" />
+	<Image Name="MouseEsWeCursor" XPos="182" YPos="150" Width="18" Height="8" XOffset="-8" YOffset="-3" />
+	<Image Name="MouseNeSwCursor" XPos="201" YPos="147" Width="14" Height="14" XOffset="-7" YOffset="-7" />
+	<Image Name="MouseNwSeCursor" XPos="230" YPos="126" Width="14" Height="14" XOffset="-7" YOffset="-7" />
+	<Image Name="MouseTextBar" XPos="173" YPos="127" Width="7" Height="18" XOffset="-2" YOffset="-9" />
+	<Image Name="TabControlButtonPaneFiller" XPos="197" YPos="201" Width="7" Height="1" />
+	<Image Name="TabPaneLeft" XPos="41" YPos="89" Width="7" Height="6" />
+	<Image Name="TabPaneRight" XPos="62" YPos="89" Width="7" Height="6" />
+	<Image Name="TabPaneLower" XPos="52" YPos="99" Width="6" Height="7" />
+	<Image Name="TabPaneLowerLeft" XPos="41" YPos="99" Width="7" Height="7" />
+	<Image Name="TabPaneLowerRight" XPos="62" YPos="99" Width="7" Height="7" />
+	<Image Name="TabPaneMiddle" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="TabButtonLeftNormal" XPos="41" YPos="89" Width="7" Height="6" />
+	<Image Name="TabButtonRightNormal" XPos="62" YPos="89" Width="7" Height="6" />
+	<Image Name="TabButtonUpperNormal" XPos="52" YPos="78" Width="6" Height="7" />
+	<Image Name="TabButtonLowerNormal" XPos="52" YPos="99" Width="6" Height="7" />
+	<Image Name="TabButtonUpperLeftNormal" XPos="41" YPos="78" Width="7" Height="7" />
+	<Image Name="TabButtonUpperRightNormal" XPos="62" YPos="78" Width="7" Height="7" />
+	<Image Name="TabButtonLowerLeftNormal" XPos="41" YPos="99" Width="7" Height="7" />
+	<Image Name="TabButtonLowerRightNormal" XPos="187" YPos="195" Width="7" Height="7" />
+	<Image Name="TabButtonMiddleNormal" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="TabButtonLeftSelected" XPos="41" YPos="89" Width="7" Height="6" />
+	<Image Name="TabButtonRightSelected" XPos="62" YPos="89" Width="7" Height="6" />
+	<Image Name="TabButtonUpperSelected" XPos="52" YPos="78" Width="6" Height="7" />
+	<Image Name="TabButtonLowerSelected" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="TabButtonUpperLeftSelected" XPos="41" YPos="78" Width="7" Height="7" />
+	<Image Name="TabButtonUpperRightSelected" XPos="62" YPos="78" Width="7" Height="7" />
+	<Image Name="TabButtonLowerLeftSelected" XPos="41" YPos="99" Width="7" Height="7" />
+	<Image Name="TabButtonLowerRightSelected" XPos="62" YPos="99" Width="7" Height="7" />
+	<Image Name="TabButtonMiddleSelected" XPos="52" YPos="89" Width="6" Height="6" />
+	<Image Name="TooltipTopLeft" XPos="61" YPos="160" Width="4" Height="4" />
+	<Image Name="TooltipTopRight" XPos="85" YPos="160" Width="5" Height="4" />
+	<Image Name="TooltipBottomLeft" XPos="61" YPos="184" Width="4" Height="5" />
+	<Image Name="TooltipBottomRight" XPos="85" YPos="184" Width="5" Height="5" />
+	<Image Name="TooltipLeftEdge" XPos="61" YPos="171" Width="4" Height="6" />
+	<Image Name="TooltipRightEdge" XPos="85" YPos="171" Width="5" Height="6" />
+	<Image Name="TooltipTopEdge" XPos="72" YPos="160" Width="6" Height="4" />
+	<Image Name="TooltipBottomEdge" XPos="72" YPos="184" Width="6" Height="5" />
+	<Image Name="TooltipMiddle" XPos="72" YPos="171" Width="6" Height="6" />
+	<Image Name="MenuTopLeft" XPos="166" YPos="204" Width="2" Height="2" />
+	<Image Name="MenuTopRight" XPos="175" YPos="204" Width="3" Height="2" />
+	<Image Name="MenuBottomLeft" XPos="166" YPos="213" Width="2" Height="3" />
+	<Image Name="MenuBottomRight" XPos="175" YPos="213" Width="3" Height="3" />
+	<Image Name="MenuLeft" XPos="166" YPos="209" Width="2" Height="1" />
+	<Image Name="MenuRight" XPos="175" YPos="209" Width="3" Height="1" />
+	<Image Name="MenuTop" XPos="171" YPos="204" Width="1" Height="2" />
+	<Image Name="MenuBottom" XPos="171" YPos="213" Width="1" Height="3" />
+	<Image Name="MenuMiddle" XPos="171" YPos="209" Width="1" Height="1" />
+	<Image Name="PopupMenuFrameTopLeft" XPos="186" YPos="204" Width="2" Height="2" />
+	<Image Name="PopupMenuFrameTopRight" XPos="195" YPos="204" Width="4" Height="2" />
+	<Image Name="PopupMenuFrameBottomLeft" XPos="186" YPos="213" Width="2" Height="4" />
+	<Image Name="PopupMenuFrameBottomRight" XPos="195" YPos="213" Width="4" Height="4" />
+	<Image Name="PopupMenuFrameLeft" XPos="186" YPos="209" Width="2" Height="1" />
+	<Image Name="PopupMenuFrameRight" XPos="195" YPos="209" Width="4" Height="1" />
+	<Image Name="PopupMenuFrameTop" XPos="191" YPos="204" Width="1" Height="2" />
+	<Image Name="PopupMenuFrameBottom" XPos="191" YPos="213" Width="1" Height="4" />
+	<Image Name="PopupMenuMiddle" XPos="191" YPos="209" Width="1" Height="1" />
+	<Image Name="PopupMenuArrowRight" XPos="179" YPos="204" Width="5" Height="5" />
+	<Image Name="PopupMenuArrowLeft" XPos="179" YPos="210" Width="5" Height="5" />
+</Imageset>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-8.font
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-8.font	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-8.font	(revision 1049)
@@ -0,0 +1,2 @@
+<?xml version="1.0" ?>
+<Font Name="Tahoma-8" Filename="tahoma.ttf" Type="Dynamic" Size="8" NativeHorzRes="1024" NativeVertRes="768" AutoScaled="true" AntiAlias="true" />
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.scheme
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.scheme	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.scheme	(revision 1049)
@@ -0,0 +1,40 @@
+<?xml version="1.0" ?>
+<GUIScheme Name="TaharezLook">
+	<Imageset Name="TaharezLook" Filename="TaharezLook.imageset" />
+	<Font Name="Tahoma-12" Filename="tahoma-12.font" />
+	<Font Name="Tahoma-10" Filename="tahoma-10.font" />
+	<Font Name="Tahoma-8" Filename="tahoma-8.font" />
+	<WindowSet Filename="CEGUITaharezLook">
+		<WindowFactory Name="TaharezLook/AlternateProgressBar" />
+		<WindowFactory Name="TaharezLook/Button" />
+		<WindowFactory Name="TaharezLook/Checkbox" />
+		<WindowFactory Name="TaharezLook/CloseButton" />
+		<WindowFactory Name="TaharezLook/Combobox" />
+		<WindowFactory Name="TaharezLook/ComboDropList" />
+		<WindowFactory Name="TaharezLook/ComboEditbox" />
+		<WindowFactory Name="TaharezLook/Editbox" />
+		<WindowFactory Name="TaharezLook/FrameWindow" />
+		<WindowFactory Name="TaharezLook/LargeVerticalScrollbar" />
+		<WindowFactory Name="TaharezLook/LargeVerticalScrollbarThumb" />
+		<WindowFactory Name="TaharezLook/Listbox" />
+		<WindowFactory Name="TaharezLook/ListHeader" />
+		<WindowFactory Name="TaharezLook/ListHeaderSegment" />
+		<WindowFactory Name="TaharezLook/HorizontalScrollbar" />
+		<WindowFactory Name="TaharezLook/HorizontalScrollbarThumb" />
+		<WindowFactory Name="TaharezLook/MultiColumnList" />
+		<WindowFactory Name="TaharezLook/MultiLineEditbox" />
+		<WindowFactory Name="TaharezLook/ProgressBar" />
+		<WindowFactory Name="TaharezLook/RadioButton" />
+		<WindowFactory Name="TaharezLook/Slider" />
+		<WindowFactory Name="TaharezLook/SliderThumb" />
+		<WindowFactory Name="TaharezLook/StaticImage" />
+		<WindowFactory Name="TaharezLook/StaticText" />
+		<WindowFactory Name="TaharezLook/TabButton" />
+		<WindowFactory Name="TaharezLook/TabControl" />
+		<WindowFactory Name="TaharezLook/TabPane" />
+		<WindowFactory Name="TaharezLook/Titlebar" />
+		<WindowFactory Name="TaharezLook/VerticalScrollbar" />
+		<WindowFactory Name="TaharezLook/VerticalScrollbarThumb" />
+		<WindowFactory Name="TaharezLook/VUMeter" />
+	</WindowSet>
+</GUIScheme>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoLayout.xml
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoLayout.xml	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoLayout.xml	(revision 1049)
@@ -0,0 +1,276 @@
+<?xml version="1.0" ?>
+<GUILayout>
+<Window Type="DefaultGUISheet" Name="root">
+
+	<Window Type="DefaultGUISheet" Name="debug_overlay">
+		<Property Name="AlwaysOnTop" Value="True" />
+		<Property Name="Disabled" Value="True" />
+		
+		<Window Type="TaharezLook/StaticText" Name="Panel 1">
+			<Property Name="Position" Value="x:0 y:0.83" />
+			<Property Name="Size" Value="w:0.23 h:0.17" />
+			<Property Name="TopLeftFrameImage" Value="set:OgreGuiImagery image:BoxTopLeft" />
+			<Property Name="TopRightFrameImage" Value="set:OgreGuiImagery image:BoxTopRight" />
+			<Property Name="BottomLeftFrameImage" Value="set:OgreGuiImagery image:BoxBottomLeft" />
+			<Property Name="BottomRightFrameImage" Value="set:OgreGuiImagery image:BoxBottomRight" />
+			<Property Name="LeftFrameImage" Value="set:OgreGuiImagery image:BoxLeft" />
+			<Property Name="TopFrameImage" Value="set:OgreGuiImagery image:BoxTop" />
+			<Property Name="RightFrameImage" Value="set:OgreGuiImagery image:BoxRight" />
+			<Property Name="BottomFrameImage" Value="set:OgreGuiImagery image:BoxBottom" />
+			<Property Name="BackgroundImage" Value="set:OgreGuiImagery image:BoxBack" />
+			<Property Name="Alpha" Value="0.9" />
+			<Property Name="InheritsAlpha" Value="False" />
+	
+			<Window Type="TaharezLook/StaticText" Name="OPCurrentFPS">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Font" Value="Tahoma-8" />
+				<Property Name="Position" Value="x:0.075 y:0.12" />
+				<Property Name="Size" Value="w:0.85 h:0.15" />
+				<Property Name="TextColours" Value="tl:FF4FF06F tr:FF4FF06F bl:FF4FF06F br:FF4FF06F" />
+				<Property Name="HorzFormatting" Value="HorzCentred" />
+				<Property Name="Text" Value="Current FPS: " />
+			</Window>
+
+			<Window Type="TaharezLook/StaticImage" Name="OPBar1">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Position" Value="x:0.2 y:0.27" />
+				<Property Name="Size" Value="w:0.6 h:0.025" />
+				<Property Name="Image" Value="set:OgreGuiImagery image:Bar" />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="OPAverageFPS">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Font" Value="Tahoma-8" />
+				<Property Name="Position" Value="x:0.075 y:0.32" />
+				<Property Name="Size" Value="w:1.0 h:0.15" />
+				<Property Name="TextColours" Value="tl:FFFFF5F0 tr:FFFFF5F0 bl:FFFFF510 br:FFFFF5F0" />
+				<Property Name="Text" Value="Average FPS: " />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="OPWorstFPS">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Font" Value="Tahoma-8" />
+				<Property Name="Position" Value="x:0.075 y:0.45" />
+				<Property Name="Size" Value="w:1.0 h:0.15" />
+				<Property Name="TextColours" Value="tl:FFFFF5F0 tr:FFFFF5F0 bl:FFFFF510 br:FFFFF5F0" />
+				<Property Name="Text" Value="Worst FPS: " />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="OPBestFPS">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Font" Value="Tahoma-8" />
+				<Property Name="Position" Value="x:0.075 y:0.58" />
+				<Property Name="Size" Value="w:1.0 h:0.15" />
+				<Property Name="TextColours" Value="tl:FFFFF5F0 tr:FFFFF5F0 bl:FFFFF510 br:FFFFF5F0" />
+				<Property Name="Text" Value="Best FPS: " />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="OPTriCount">
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="Font" Value="Tahoma-8" />
+				<Property Name="Position" Value="x:0.075 y:0.71" />
+				<Property Name="Size" Value="w:1.0 h:0.15" />
+				<Property Name="TextColours" Value="tl:FFFFF5F0 tr:FFFFF5F0 bl:FFFFF510 br:FFFFF5F0" />
+				<Property Name="Text" Value="Triangle Count: " />
+			</Window>
+
+		</Window>
+
+		<Window Type="TaharezLook/StaticText" Name="OPDebugMsg">
+			<Property Name="FrameEnabled" Value="False" />
+			<Property Name="BackgroundEnabled" Value="False" />
+			<Property Name="Font" Value="Tahoma-8" />
+			<Property Name="Position" Value="x:0.25 y:0.93" />
+			<Property Name="Size" Value="w:0.65 h:0.07" />
+			<Property Name="TextColours" Value="tl:A0FFFFFF tr:A0FFFFFF bl:A0FFFFFF br:A0FFFFFF" />
+			<Property Name="InheritsAlpha" Value="False" />
+			<Property Name="VertFormatting" Value="VertCentred" />
+			<Property Name="HorzFormatting" Value="WordWrapCentred" />
+		</Window>
+
+		<Window Type="TaharezLook/StaticImage" Name="OgreLogo">
+			<Property Name="FrameEnabled" Value="False" />
+			<Property Name="BackgroundEnabled" Value="False" />
+			<Property Name="Position" Value="x:0.9 y:0.95" />
+			<Property Name="Size" Value="w:0.1 h:0.05" />
+			<Property Name="Image" Value="set:OgreGuiImagery image:OgreLogo" />
+			<Property Name="Alpha" Value="0.75" />
+			<Property Name="InheritsAlpha" Value="False" />
+		</Window>
+
+		<Window Type="TaharezLook/StaticImage" Name="CeguiLogo">
+			<Property Name="FrameEnabled" Value="False" />
+			<Property Name="BackgroundEnabled" Value="False" />
+			<Property Name="Position" Value="x:0.9125 y:0.9115" />
+			<Property Name="Size" Value="w:0.075 h:0.0385" />
+			<Property Name="Image" Value="set:OgreGuiImagery image:CeguiLogo" />
+			<Property Name="Alpha" Value="0.75" />
+			<Property Name="InheritsAlpha" Value="False" />
+		</Window>
+
+	</Window>
+
+	<Window Type="DefaultGUISheet" Name="OceanDemo">
+
+		<Property Name="RelativeMaxSize" Value="w:1 h:2" />
+		<Property Name="Size" Value="w:1 h:2" />
+
+
+		<Window Type="TaharezLook/StaticText" Name="HelpTxt">
+			<Property Name="Position" Value="x:0.6 y:0.8" />
+			<Property Name="RelativeMinSize" Value="w:0.5 h:0.3" />
+			<Property Name="Size" Value="w:0.5 h:0.3" />
+			<Property Name="Text" Value="Use the Combo boxes to select a shader and a model" />
+			<Property Name="InheritsAlpha" Value="False" />
+		</Window>
+		
+		<Window Type="TaharezLook/FrameWindow" Name="OceanDemo/MainWin">
+			<Property Name="Position" Value="x:0 y:0" />
+			<Property Name="RelativeMaxSize" Value="w:0.23 h:0.23" />
+			<Property Name="RelativeMinSize" Value="w:0.23 h:0.23" />
+			<Property Name="Size" Value="w:0.23 h:0.23" />
+			<Property Name="Text" Value="Selector" />
+			<Property Name="Alpha" Value="0.75" />
+			<Property Name="CloseButtonEnabled" Value="False" />
+
+			<Window Type="TaharezLook/StaticText" Name="ShaderTxt">
+				<Property Name="Position" Value="x:0.05 y:0.15" />
+				<Property Name="RelativeMaxSize" Value="w:0.3 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.3 h:0.03" />
+				<Property Name="Size" Value="w:0.3 h:0.03" />
+				<Property Name="HorzFormatting" Value="LeftAligned" />
+				<Property Name="Text" Value="Active Material" />
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="InheritsAlpha" Value="False" />
+			</Window>
+
+			<Window Type="TaharezLook/Combobox" Name="ShaderCombos">
+				<Property Name="Position" Value="x:0.05 y:0.27" />
+				<Property Name="RelativeMaxSize" Value="w:0.2 h:0.15" />
+				<Property Name="RelativeMinSize" Value="w:0.2 h:0.15" />
+				<Property Name="Size" Value="w:0.2 h:0.15" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="ReadOnly" Value="True" />
+				<Property Name="ClippedByParent" Value="False" />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="ModelTxt">
+				<Property Name="Position" Value="x:0.05 y:0.45" />
+				<Property Name="RelativeMaxSize" Value="w:0.3 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.3 h:0.03" />
+				<Property Name="Size" Value="w:0.3 h:0.03" />
+				<Property Name="HorzFormatting" Value="LeftAligned" />
+				<Property Name="Text" Value="Active Model" />
+				<Property Name="FrameEnabled" Value="False" />
+				<Property Name="BackgroundEnabled" Value="False" />
+				<Property Name="InheritsAlpha" Value="False" />
+			</Window>
+
+			<Window Type="TaharezLook/Combobox" Name="ModelCombos">
+				<Property Name="Position" Value="x:0.05 y:0.57" />
+				<Property Name="RelativeMaxSize" Value="w:0.2 h:0.15" />
+				<Property Name="RelativeMinSize" Value="w:0.2 h:0.15" />
+				<Property Name="Size" Value="w:0.2 h:0.15" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="ReadOnly" Value="True" />
+				<Property Name="ClippedByParent" Value="False" />
+			</Window>
+
+			<Window Type="TaharezLook/Button" Name="ExitDemoBtn">
+				<Property Name="Position" Value="x:0.25 y:0.79" />
+				<Property Name="RelativeMaxSize" Value="w:0.12 h:0.04" />
+				<Property Name="RelativeMinSize" Value="w:0.12 h:0.04" />
+				<Property Name="Size" Value="w:0.33 h:0.04" />
+				<Property Name="Text" Value="Exit Demo" />
+				<Property Name="InheritsAlpha" Value="False" />
+			</Window>
+
+
+		</Window>
+
+
+		<Window Type="TaharezLook/FrameWindow" Name="ShaderControlsWin">
+			<Property Name="Position" Value="x:0.50 y:0" />
+			<Property Name="RelativeMaxSize" Value="w:0.5 h:0.22" />
+			<Property Name="RelativeMinSize" Value="w:0.5 h:0.22" />
+			<Property Name="Size" Value="w:0.5 h:0.22" />
+			<Property Name="Text" Value="Shader Controls" />
+			<Property Name="Alpha" Value="0.75" />
+			<Property Name="CloseButtonEnabled" Value="False" />
+			
+			<Window Type="TaharezLook/VerticalScrollbar" Name="VerticalScroll">
+				<Property Name="Position" Value="x:0.94 y:0.2" />
+				<Property Name="Size" Value="w:0.04 h:0.75" />
+				<Property Name="DocumentSize" Value="1" />
+				<Property Name="PageSize" Value="1" />
+				<Property Name="StepSize" Value="0.01" />
+				<Property Name="OverlapSize" Value="0.5" />
+			</Window>
+			
+		</Window>
+
+		<Window Type="TaharezLook/FrameWindow" Name="MovementControlsWin">
+			<Property Name="Position" Value="x:0.0 y:0.2" />
+			<Property Name="RelativeMaxSize" Value="w:0.15 h:0.22" />
+			<Property Name="RelativeMinSize" Value="w:0.15 h:0.22" />
+			<Property Name="Size" Value="w:0.15 h:0.22" />
+			<Property Name="Text" Value="Movement" />
+			<Property Name="Alpha" Value="0.75" />
+			<Property Name="CloseButtonEnabled" Value="False" />
+			
+			<Window Type="TaharezLook/RadioButton" Name="CameraRBtn">
+				<Property Name="Position" Value="x:0.1 y:0.2" />
+				<Property Name="RelativeMaxSize" Value="w:0.12 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.12 h:0.03" />
+				<Property Name="Size" Value="w:0.33 h:0.03" />
+				<Property Name="Text" Value="Camera" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="Selected" Value="true" />
+				<Property Name="ID" Value="0" />
+			
+			</Window>
+
+			<Window Type="TaharezLook/RadioButton" Name="ModelRBtn">
+				<Property Name="Position" Value="x:0.1 y:0.4" />
+				<Property Name="RelativeMaxSize" Value="w:0.12 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.12 h:0.03" />
+				<Property Name="Size" Value="w:0.33 h:0.03" />
+				<Property Name="Text" Value="Model" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="Selected" Value="False" />
+				<Property Name="ID" Value="1" />
+			
+			</Window>
+			
+			<Window Type="TaharezLook/Checkbox" Name="ModelSpinCB">
+				<Property Name="Position" Value="x:0.2 y:0.53" />
+				<Property Name="RelativeMaxSize" Value="w:0.12 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.12 h:0.03" />
+				<Property Name="Size" Value="w:0.12 h:0.03" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="Text" Value="Spin" />
+				<Property Name="Selected" Value="True" />
+			</Window>
+
+			<Window Type="TaharezLook/Checkbox" Name="LightSpinCB">
+				<Property Name="Position" Value="x:0.1 y:0.7" />
+				<Property Name="RelativeMaxSize" Value="w:0.12 h:0.03" />
+				<Property Name="RelativeMinSize" Value="w:0.12 h:0.03" />
+				<Property Name="Size" Value="w:0.12 h:0.03" />
+				<Property Name="InheritsAlpha" Value="False" />
+				<Property Name="Text" Value="Spin Light" />
+				<Property Name="Selected" Value="False" />
+			</Window>
+		</Window>
+	</Window>
+
+</Window>
+
+</GUILayout>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/Imageset.xsd
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/Imageset.xsd	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/Imageset.xsd	(revision 1049)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+	<xsd:element name="Imageset" type="ImagesetType"/>
+	
+	<xsd:complexType name="ImagesetType">
+		<xsd:sequence>
+			<xsd:element name="Image" type="ImageType" maxOccurs="unbounded"/>
+		</xsd:sequence>
+		<xsd:attribute name="Imagefile" type="xsd:string" use="required"/>
+		<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
+		<xsd:attribute name="Name" type="xsd:string" use="required"/>
+		<xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
+		<xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
+		<xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
+	</xsd:complexType>
+	
+	<xsd:complexType name="ImageType">
+		<xsd:attribute name="Name" type="xsd:string" use="required"/>
+		<xsd:attribute name="XPos" type="xsd:nonNegativeInteger" use="required"/>
+		<xsd:attribute name="YPos" type="xsd:nonNegativeInteger" use="required"/>
+		<xsd:attribute name="Width" type="xsd:nonNegativeInteger" use="required"/>
+		<xsd:attribute name="Height" type="xsd:nonNegativeInteger" use="required"/>
+		<xsd:attribute name="XOffset" type="xsd:integer" use="optional" default="0"/>
+		<xsd:attribute name="YOffset" type="xsd:integer" use="optional" default="0"/>						
+	</xsd:complexType>
+
+</xsd:schema>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/facial.layout
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/facial.layout	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/facial.layout	(revision 1049)
@@ -0,0 +1,379 @@
+<?xml version="1.0" ?>
+<GUILayout>
+<Window Type="DefaultGUISheet" Name="root">
+    <Window Type="DefaultGUISheet" Name="FacialDemo">
+		<Property Name="Size" Value="w:0.25 h:1" />
+
+		<Window Type="TaharezLook/FrameWindow" Name="OgreGuiDemo/WindowPropertiesWindow">
+			<Property Name="MetricsMode" Value="Absolute" />
+			<Property Name="Size" Value="w:200 h:400" />
+            <Property Name="Position" Value="x:0 y:0.52" />
+            <Property Name="TitlebarEnabled" Value="false" />
+            <Property Name="CloseButtonEnabled" Value="false" />
+			<Property Name="Text" Value="Editor Window" />
+			<Window Type="TaharezLook/RadioButton" Name="Facial/Radio/Play">
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:15 y:5" />
+				<Property Name="Size" Value="w:90 h:40" />
+                <Property Name="Text" Value="Animation" />
+            </Window>
+			<Window Type="TaharezLook/RadioButton" Name="Facial/Radio/Manual">
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:100 y:5" />
+				<Property Name="Size" Value="w:90 h:40" />
+                <Property Name="Text" Value="Manual" />
+			</Window>				
+			<Window Type="TaharezLook/StaticText" Name="Facial/Expressions">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:5 y:35" />
+				<Property Name="Size" Value="w:190 h:40" />
+                <Property Name="Text" Value="Expressions" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/Happy_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:5 y:55" />
+				<Property Name="Size" Value="w:60 h:40" />
+                <Property Name="Text" Value="Happy" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/Happy_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:75" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/Sad_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:5 y:70" />
+				<Property Name="Size" Value="w:60 h:40" />
+                <Property Name="Text" Value="Sad" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/Sad_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:90" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/Angry_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:5 y:85" />
+				<Property Name="Size" Value="w:60 h:40" />
+                <Property Name="Text" Value="Angry" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/Angry_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:105" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="Facial/MouthShapes">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:5 y:110" />
+				<Property Name="Size" Value="w:150 h:40" />
+                <Property Name="Text" Value="Mouth Shapes" />
+            </Window>
+
+			<Window Type="TaharezLook/StaticText" Name="Facial/A_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:135" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="A" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/A_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:150" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/E_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:25 y:150" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="E" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/E_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:165" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/I_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:165" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="I" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/I_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:180" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/O_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:25 y:180" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="O" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/O_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:195" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/U_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:195" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="U" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/U_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:210" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/C_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:210" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="C" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/C_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:225" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+			</Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/W_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:25 y:225" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="W" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/W_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:240" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/M_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:240" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="M" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/M_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:255" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/L_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:255" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="L" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/L_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:270" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/F_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:270" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="F" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/F_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:285" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/T_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:285" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="T" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/T_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+				<Property Name="Position" Value="x:60 y:300" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/P_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:300" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="P" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/P_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:315" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/R_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:315" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="R" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/R_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:330" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/S_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:330" />
+				<Property Name="Size" Value="w:30 h:40" />
+                <Property Name="Text" Value="S" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/S_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:345" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			<Window Type="TaharezLook/StaticText" Name="Facial/TH_Label">
+				<Property Name="FrameEnabled" Value="False"/>
+				<Property Name="BackgroundEnabled" Value="False"/>
+				<Property Name="Font" Value="Tahoma-10"/>
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:25 y:345" />
+				<Property Name="Size" Value="w:35 h:40" />
+                <Property Name="Text" Value="TH" />
+            </Window>
+			<Window Type="TaharezLook/HorizontalScrollbar" Name="Facial/TH_Scroll">
+				<Property Name="MetricsMode" Value="Absolute" />
+                <Property Name="Position" Value="x:60 y:360" />
+				<Property Name="Size" Value="w:120 h:10" />
+				<Property Name="DocumentSize" Value="1.1" />
+				<Property Name="PageSize" Value="0.1" />
+				<Property Name="StepSize" Value="0.05" />
+				<Property Name="OverlapSize" Value="0.05" />
+            </Window>
+			
+			<!-- A, U, O, E, I, C, W, M, L, F, T, P, R, S, TH -->
+
+        </Window>
+	</Window>
+</Window>
+
+</GUILayout>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-10.font
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-10.font	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-10.font	(revision 1049)
@@ -0,0 +1,2 @@
+<?xml version="1.0" ?>
+<Font Name="Tahoma-10" Filename="tahoma.ttf" Type="Dynamic" Size="10" NativeHorzRes="1024" NativeVertRes="768" AutoScaled="false" AntiAlias="true" />
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookWidgetAliases.scheme
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookWidgetAliases.scheme	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookWidgetAliases.scheme	(revision 1049)
@@ -0,0 +1,34 @@
+<?xml version="1.0" ?>
+<GUIScheme Name="TaharezLookWidgetAliases">
+	<WindowAlias Alias="Taharez AltProgressBar" Target="TaharezLook/AlternateProgressBar" />
+	<WindowAlias Alias="Taharez Button" Target="TaharezLook/Button" />
+	<WindowAlias Alias="Taharez Checkbox" Target="TaharezLook/Checkbox" />
+	<WindowAlias Alias="Taharez Close Button" Target="TaharezLook/CloseButton" />
+	<WindowAlias Alias="Taharez Combobox" Target="TaharezLook/Combobox" />
+	<WindowAlias Alias="Taharez ComboDropList" Target="TaharezLook/ComboDropList" />
+	<WindowAlias Alias="Taharez ComboEditbox" Target="TaharezLook/ComboEditbox" />
+	<WindowAlias Alias="Taharez Editbox" Target="TaharezLook/Editbox" />
+	<WindowAlias Alias="Taharez Frame Window" Target="TaharezLook/FrameWindow" />
+	<WindowAlias Alias="Taharez Listbox" Target="TaharezLook/Listbox" />
+	<WindowAlias Alias="Taharez ListHeader" Target="TaharezLook/ListHeader" />
+	<WindowAlias Alias="Taharez ListHeaderSegment" Target="TaharezLook/ListHeaderSegment" />
+	<WindowAlias Alias="Taharez MiniHorzScrollbar" Target="TaharezLook/HorizontalScrollbar" />
+	<WindowAlias Alias="Taharez MiniHorzScrollbarThumb" Target="TaharezLook/HorizontalScrollbarThumb" />
+	<WindowAlias Alias="Taharez MiniVertScrollbar" Target="TaharezLook/VerticalScrollbar" />
+	<WindowAlias Alias="Taharez MiniVertScrollbarThumb" Target="TaharezLook/VerticalScrollbarThumb" />
+	<WindowAlias Alias="Taharez MultiColumnList" Target="TaharezLook/MultiColumnList" />
+	<WindowAlias Alias="Taharez MultiLineEditbox" Target="TaharezLook/MultiLineEditbox" />
+	<WindowAlias Alias="Taharez ProgressBar" Target="TaharezLook/ProgressBar" />
+	<WindowAlias Alias="Taharez RadioButton" Target="TaharezLook/RadioButton" />
+	<WindowAlias Alias="Taharez Slider" Target="TaharezLook/Slider" />
+	<WindowAlias Alias="Taharez Slider Thumb" Target="TaharezLook/SliderThumb" />
+	<WindowAlias Alias="Taharez StaticImage" Target="TaharezLook/StaticImage" />
+	<WindowAlias Alias="Taharez StaticText" Target="TaharezLook/StaticText" />
+	<WindowAlias Alias="Taharez Tab Button" Target="TaharezLook/TabButton" />
+	<WindowAlias Alias="Taharez Tab Pane" Target="TaharezLook/TabPane" />
+	<WindowAlias Alias="Taharez Tab Control" Target="TaharezLook/TabControl" />
+	<WindowAlias Alias="Taharez Titlebar" Target="TaharezLook/Titlebar" />
+	<WindowAlias Alias="Taharez VertScrollbar" Target="TaharezLook/LargeVerticalScrollbar" />
+	<WindowAlias Alias="Taharez VertScrollbarThumb" Target="TaharezLook/LargeVerticalScrollbarThumb" />
+</GUIScheme>
+
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-12.font
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-12.font	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/tahoma-12.font	(revision 1049)
@@ -0,0 +1,2 @@
+<?xml version="1.0" ?>
+<Font Name="Tahoma-12" Filename="tahoma.ttf" Type="Dynamic" Size="12" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/Falagard.xsd
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/Falagard.xsd	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/Falagard.xsd	(revision 1049)
@@ -0,0 +1,363 @@
+<?xml version="1.0" ?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+	<xsd:element name="Falagard" type="falagardSpecificationType" />
+	<xsd:complexType name="falagardSpecificationType">
+		<xsd:sequence>
+			<xsd:element name="WidgetLook" type="widgetLookType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+	</xsd:complexType>
+	<xsd:complexType name="widgetLookType">
+		<xsd:sequence>
+            <xsd:element name="PropertyDefinition" type="propertyDefinitionType" minOccurs="0" maxOccurs="unbounded" />
+            <xsd:element name="Property" type="propertyType" minOccurs="0" maxOccurs="unbounded" />
+            <xsd:element name="NamedArea" type="namedAreaType" minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="Child" type="widgetComponentType" minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="ImagerySection" type="imagerySectionType" minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="StateImagery" type="stateType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="name" type="xsd:string" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="propertyDefinitionType">
+        <xsd:attribute name="type" type="propertyTypeEnum" use="optional" default="Generic" />
+        <xsd:attribute name="name" type="xsd:string" use="required" />
+        <xsd:attribute name="initialValue" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="layoutOnWrite" type="xsd:boolean" use="optional" default="false" />
+        <xsd:attribute name="redrawOnWrite" type="xsd:boolean" use="optional" default="false" />
+    </xsd:complexType>
+    <xsd:complexType name="namedAreaType">
+        <xsd:sequence>
+            <xsd:element name="Area" type="componentAreaType" />
+        </xsd:sequence>
+        <xsd:attribute name="name" type="xsd:string" use="required" />
+    </xsd:complexType>
+	<xsd:complexType name="stateType">
+		<xsd:sequence>
+			<xsd:element name="Layer" type="layerType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="name" type="xsd:string" use="required" />
+        <xsd:attribute name="clipped" type="xsd:boolean" use="optional" default="true" />
+	</xsd:complexType>
+	<xsd:complexType name="layerType">
+		<xsd:sequence>
+			<xsd:element name="Section" type="sectionSpecType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="priority" type="xsd:integer" use="optional" default="0" />
+	</xsd:complexType>
+    <xsd:complexType name="sectionSpecType">
+        <xsd:choice  minOccurs="0" maxOccurs="1">
+            <xsd:element name="Colours" type="colourRectType" />
+            <xsd:element name="ColourProperty" type="settingByPropertyType" />
+            <xsd:element name="ColourRectProperty" type="settingByPropertyType" />
+        </xsd:choice>
+        <xsd:attribute name="look" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="section" type="xsd:string" use="required" />
+    </xsd:complexType>
+	<xsd:complexType name="imagerySectionType">
+		<xsd:sequence>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="Colours" type="colourRectType" />
+                <xsd:element name="ColourProperty" type="settingByPropertyType" />
+                <xsd:element name="ColourRectProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:element name="FrameComponent" type="frameComponentType" minOccurs="0" maxOccurs="unbounded" />
+			<xsd:element name="ImageryComponent" type="imageryComponentType" minOccurs="0" maxOccurs="unbounded" />
+            <xsd:element name="TextComponent" type="textComponentType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="name" type="xsd:string" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="frameComponentType">
+        <xsd:sequence>
+            <xsd:element name="Area" type="componentAreaType" />
+            <xsd:element name="Image" type="frameImageType" minOccurs="0" maxOccurs="9" />
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="Colours" type="colourRectType" />
+                <xsd:element name="ColourProperty" type="settingByPropertyType" />
+                <xsd:element name="ColourRectProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="VertFormat" type="vertFormatType" />
+                <xsd:element name="VertFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="HorzFormat" type="horzFormatType" />
+                <xsd:element name="HorzFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+        </xsd:sequence>
+    </xsd:complexType>
+    <xsd:complexType name="textComponentType">
+        <xsd:sequence>
+            <xsd:element name="Area" type="componentAreaType" />
+            <xsd:element name="Text" type="textStringType" minOccurs="0" maxOccurs="1" />
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="Colours" type="colourRectType" />
+                <xsd:element name="ColourProperty" type="settingByPropertyType" />
+                <xsd:element name="ColourRectProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="VertFormat" type="vertTextFormatType" />
+                <xsd:element name="VertFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="HorzFormat" type="horzTextFormatType" />
+                <xsd:element name="HorzFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+        </xsd:sequence>
+    </xsd:complexType>
+	<xsd:complexType name="imageryComponentType">
+		<xsd:sequence>
+			<xsd:element name="Area" type="componentAreaType" />
+            <xsd:choice>
+                <xsd:element name="Image" type="imageType" />
+                <xsd:element name="ImageProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="Colours" type="colourRectType" />
+                <xsd:element name="ColourProperty" type="settingByPropertyType" />
+                <xsd:element name="ColourRectProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="VertFormat" type="vertFormatType" />
+                <xsd:element name="VertFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+            <xsd:choice  minOccurs="0" maxOccurs="1">
+                <xsd:element name="HorzFormat" type="horzFormatType" />
+                <xsd:element name="HorzFormatProperty" type="settingByPropertyType" />
+            </xsd:choice>
+		</xsd:sequence>
+	</xsd:complexType>
+	<xsd:complexType name="widgetComponentType">
+		<xsd:sequence>
+			<xsd:element name="Area" type="componentAreaType" />
+			<xsd:element name="VertAlignment" type="vertAlignmentType" minOccurs="0" maxOccurs="1" />
+			<xsd:element name="HorzAlignment" type="horzAlignmentType" minOccurs="0" maxOccurs="1" />
+			<xsd:element name="Property" type="propertyType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="type" type="xsd:string" use="required" />
+		<xsd:attribute name="nameSuffix" type="xsd:string" use="required" />
+		<xsd:attribute name="look" type="xsd:string" use="optional" default="" />
+	</xsd:complexType>
+	<xsd:complexType name="horzFormatType">
+		<xsd:attribute name="type" type="horzFormatEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="vertFormatType">
+		<xsd:attribute name="type" type="vertFormatEnum" use="required" />
+	</xsd:complexType>
+        <xsd:complexType name="horzTextFormatType">
+		<xsd:attribute name="type" type="horzTextFormatEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="vertTextFormatType">
+		<xsd:attribute name="type" type="vertTextFormatEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="horzAlignmentType">
+		<xsd:attribute name="type" type="horzAlignmentEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="vertAlignmentType">
+		<xsd:attribute name="type" type="vertAlignmentEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="propertyType">
+		<xsd:attribute name="name" type="xsd:string" use="required" />
+		<xsd:attribute name="value" type="xsd:string" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="imageType">
+		<xsd:attribute name="imageset" type="xsd:string" use="required" />
+		<xsd:attribute name="image" type="xsd:string" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="frameImageType">
+        <xsd:attribute name="type" type="frameImageComponentEnum" use="required" />
+        <xsd:attribute name="imageset" type="xsd:string" use="required" />
+        <xsd:attribute name="image" type="xsd:string" use="required" />
+    </xsd:complexType>
+	<xsd:complexType name="componentAreaType">
+        <xsd:choice>
+            <xsd:sequence>
+                <xsd:element name="Dim" type="dimensionType" minOccurs="4" maxOccurs="4" />
+            </xsd:sequence>
+            <xsd:element name="AreaProperty" type="settingByPropertyType" />
+        </xsd:choice>
+	</xsd:complexType>
+	<xsd:complexType name="dimensionType">
+		<xsd:choice>
+			<xsd:element name="UnifiedDim" type="unifiedDimType" />
+			<xsd:element name="AbsoluteDim" type="absoluteDimType" />
+			<xsd:element name="ImageDim" type="imageDimType" />
+            <xsd:element name="WidgetDim" type="widgetDimType" />
+            <xsd:element name="FontDim" type="fontDimType" />
+            <xsd:element name="PropertyDim" type="propertyDimType" />
+		</xsd:choice>
+		<xsd:attribute name="type" type="dimensionTypeEnum" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="fontDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+        <xsd:attribute name="widget" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="font" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="string" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="type" type="fontMetricTypeEnum" use="required" />
+        <xsd:attribute name="padding" type="xsd:decimal" use="optional" default="0" />
+    </xsd:complexType>
+    <xsd:complexType name="propertyDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+        <xsd:attribute name="widget" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="name" type="xsd:string" use="required" />
+    </xsd:complexType>
+	<xsd:complexType name="unifiedDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+		<xsd:attribute name="scale" type="xsd:decimal" use="optional" default="0" />
+		<xsd:attribute name="offset" type="xsd:integer" use="optional" default="0" />
+		<xsd:attribute name="type" type="dimensionTypeEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="absoluteDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+		<xsd:attribute name="value" type="xsd:decimal" use="optional" default="0" />
+	</xsd:complexType>
+	<xsd:complexType name="imageDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+		<xsd:attribute name="imageset" type="xsd:string" use="required" />
+		<xsd:attribute name="image" type="xsd:string" use="required" />
+		<xsd:attribute name="dimension" type="dimensionTypeEnum" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="widgetDimType">
+        <xsd:sequence>
+            <xsd:element name="DimOperator" type="dimensionOperatorType" minOccurs="0" maxOccurs="1" />
+        </xsd:sequence>
+		<xsd:attribute name="widget" type="xsd:string" use="optional" default="" />
+		<xsd:attribute name="dimension" type="dimensionTypeEnum" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="settingByPropertyType">
+        <xsd:attribute name="name" type="xsd:string" use="required" />
+    </xsd:complexType>
+	<xsd:complexType name="colourRectType">
+		<xsd:attribute name="topLeft" type="colourValType" use="required" />
+		<xsd:attribute name="topRight" type="colourValType" use="required" />
+		<xsd:attribute name="bottomLeft" type="colourValType" use="required" />
+		<xsd:attribute name="bottomRight" type="colourValType" use="required" />
+	</xsd:complexType>
+	<xsd:simpleType name="colourValType">
+		<xsd:restriction base="xsd:string">
+			<xsd:pattern value="[a-fA-F0-9]{8}" />
+		</xsd:restriction>
+	</xsd:simpleType>
+    <xsd:complexType name="textStringType">
+        <xsd:attribute name="string" type="xsd:string" use="optional" default="" />
+        <xsd:attribute name="font" type="xsd:string" use="optional" default="" />
+    </xsd:complexType>
+    <xsd:complexType name="dimensionOperatorType">
+        <xsd:choice>
+            <xsd:element name="UnifiedDim" type="unifiedDimType" />
+            <xsd:element name="AbsoluteDim" type="absoluteDimType" />
+            <xsd:element name="ImageDim" type="imageDimType" />
+            <xsd:element name="WidgetDim" type="widgetDimType" />
+            <xsd:element name="FontDim" type="fontDimType" />
+            <xsd:element name="PropertyDim" type="propertyDimType" />
+        </xsd:choice>
+        <xsd:attribute name="op" type="dimensionOperatorEnum" use="required" />
+    </xsd:complexType>
+	<xsd:simpleType name="dimensionTypeEnum">
+		<xsd:restriction base="xsd:string">
+			<xsd:enumeration value="LeftEdge" />
+			<xsd:enumeration value="TopEdge" />
+			<xsd:enumeration value="RightEdge" />
+			<xsd:enumeration value="BottomEdge" />
+			<xsd:enumeration value="XPosition" />
+			<xsd:enumeration value="YPosition" />
+			<xsd:enumeration value="Width" />
+			<xsd:enumeration value="Height" />
+			<xsd:enumeration value="XOffset" />
+			<xsd:enumeration value="YOffset" />
+		</xsd:restriction>
+	</xsd:simpleType>
+	<xsd:simpleType name="vertFormatEnum">
+		<xsd:restriction base="xsd:string">
+			<xsd:enumeration value="TopAligned" />
+			<xsd:enumeration value="CentreAligned" />
+			<xsd:enumeration value="BottomAligned" />
+			<xsd:enumeration value="Stretched" />
+			<xsd:enumeration value="Tiled" />
+		</xsd:restriction>
+	</xsd:simpleType>
+	<xsd:simpleType name="horzFormatEnum">
+		<xsd:restriction base="xsd:string">
+			<xsd:enumeration value="LeftAligned" />
+			<xsd:enumeration value="CentreAligned" />
+			<xsd:enumeration value="RightAligned" />
+			<xsd:enumeration value="Stretched" />
+			<xsd:enumeration value="Tiled" />
+		</xsd:restriction>
+	</xsd:simpleType>
+	<xsd:simpleType name="vertAlignmentEnum">
+		<xsd:restriction base="xsd:string">
+			<xsd:enumeration value="TopAligned" />
+			<xsd:enumeration value="CentreAligned" />
+			<xsd:enumeration value="BottomAligned" />
+		</xsd:restriction>
+	</xsd:simpleType>
+	<xsd:simpleType name="horzAlignmentEnum">
+		<xsd:restriction base="xsd:string">
+			<xsd:enumeration value="LeftAligned" />
+			<xsd:enumeration value="CentreAligned" />
+			<xsd:enumeration value="RightAligned" />
+		</xsd:restriction>
+	</xsd:simpleType>
+    <xsd:simpleType name="horzTextFormatEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="LeftAligned" />
+            <xsd:enumeration value="RightAligned" />
+            <xsd:enumeration value="CentreAligned" />
+            <xsd:enumeration value="Justified" />
+            <xsd:enumeration value="WordWrapLeftAligned" />
+            <xsd:enumeration value="WordWrapRightAligned" />
+            <xsd:enumeration value="WordWrapCentreAligned" />
+            <xsd:enumeration value="WordWrapJustified" />
+        </xsd:restriction>
+    </xsd:simpleType>
+    <xsd:simpleType name="vertTextFormatEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="TopAligned" />
+            <xsd:enumeration value="BottomAligned" />
+            <xsd:enumeration value="CentreAligned" />
+        </xsd:restriction>
+    </xsd:simpleType>
+    <xsd:simpleType name="propertyTypeEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="Generic" />
+        </xsd:restriction>
+    </xsd:simpleType>
+    <xsd:simpleType name="fontMetricTypeEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="LineSpacing" />
+            <xsd:enumeration value="Baseline" />
+            <xsd:enumeration value="HorzExtent" />
+        </xsd:restriction>
+    </xsd:simpleType>
+    <xsd:simpleType name="dimensionOperatorEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="Noop" />
+            <xsd:enumeration value="Add" />
+            <xsd:enumeration value="Subtract" />
+            <xsd:enumeration value="Multiply" />
+            <xsd:enumeration value="Divide" />
+        </xsd:restriction>
+    </xsd:simpleType>
+    <xsd:simpleType name="frameImageComponentEnum">
+        <xsd:restriction base="xsd:string">
+            <xsd:enumeration value="Background" />
+            <xsd:enumeration value="TopLeftCorner" />
+            <xsd:enumeration value="TopRightCorner" />
+            <xsd:enumeration value="BottomLeftCorner" />
+            <xsd:enumeration value="BottomRightCorner" />
+            <xsd:enumeration value="LeftEdge" />
+            <xsd:enumeration value="RightEdge" />
+            <xsd:enumeration value="TopEdge" />
+            <xsd:enumeration value="BottomEdge" />
+        </xsd:restriction>
+    </xsd:simpleType>
+</xsd:schema>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.looknfeel
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.looknfeel	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLook.looknfeel	(revision 1049)
@@ -0,0 +1,3546 @@
+<?xml version="1.0" ?>
+<Falagard>
+    <!--
+    ***************************************************
+        TaharezLook/Button
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Button">
+        <PropertyDefinition name="VertLabelFormatting" initialValue="CentreAligned" />
+        <PropertyDefinition name="HorzLabelFormatting" initialValue="CentreAligned" />
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <VertFormatProperty name="VertLabelFormatting" />
+                <HorzFormatProperty name="HorzLabelFormatting" />
+            </TextComponent>
+        </ImagerySection>
+        <ImagerySection name="normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftNormal" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ButtonRightNormal" />
+                <Image type="Background" imageset="TaharezLook" image="ButtonMiddleNormal" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftHighlight" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ButtonRightHighlight" />
+                <Image type="Background" imageset="TaharezLook" image="ButtonMiddleHighlight" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="pushed">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftPushed" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ButtonRightPushed" />
+                <Image type="Background" imageset="TaharezLook" image="ButtonMiddlePushed" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Pushed">
+            <Layer>
+                <Section section="pushed" />
+                <Section section="label">
+                    <ColourProperty name="PushedTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/RadioButton
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/RadioButton">
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" >
+                        <ImageDim imageset="TaharezLook" image="RadioButtonNormal" dimension="Width">
+                            <DimOperator op="Add">
+                                <AbsoluteDim value="3" />
+                            </DimOperator>
+                        </ImageDim>
+                    </Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <ImagerySection name="normal">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="RadioButtonNormal" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="RadioButtonHover" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="select_mark">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="RadioButtonMark" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedNormal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="select_mark" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedHover">
+            <Layer>
+                <Section section="hover" />
+                <Section section="select_mark" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedDisabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="select_mark">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Checkbox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Checkbox">
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" >
+                        <ImageDim imageset="TaharezLook" image="CheckboxNormal" dimension="Width">
+                            <DimOperator op="Add">
+                                <AbsoluteDim value="3" />
+                            </DimOperator>
+                        </ImageDim>
+                    </Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <ImagerySection name="normal">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="CheckboxNormal" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="CheckboxHover" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="select_mark">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="CheckboxMark" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedNormal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="select_mark" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedHover">
+            <Layer>
+                <Section section="hover" />
+                <Section section="select_mark" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SelectedDisabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="select_mark">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Editbox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Editbox">
+        <Property name="MouseCursorImage" value="set:TaharezLook image:MouseTextBar" />
+        <NamedArea name="TextArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" offset="-5" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" offset="-5" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="container_normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="EditBoxLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="EditBoxRight" />
+                <Image type="Background" imageset="TaharezLook" image="EditBoxMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="selection">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="TextSelectionBrush" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="Carat">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><ImageDim imageset="TaharezLook" image="EditBoxCarat" dimension="Width" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="EditBoxCarat" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="container_normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ReadOnly">
+            <Layer>
+                <Section section="container_normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="container_normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ActiveSelection">
+            <Layer>
+                <Section section="selection">
+                    <ColourProperty name="ActiveSelectionColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveSelection">
+            <Layer>
+                <Section section="selection">
+                    <ColourProperty name="InactiveSelectionColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Titlebar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Titlebar">
+        <Property name="CaptionColour" value="FFFFFFFF" />
+        <ImagerySection name="main">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="NewTitlebarLeft" />
+                <VertFormat type="Stretched" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="SysAreaRight" dimension="Width">
+                                    <DimOperator op="Add">
+                                        <ImageDim imageset="TaharezLook" image="SysAreaMiddle" dimension="Width" />
+                                    </DimOperator>
+                                </ImageDim>
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="NewTitlebarRight" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="SysAreaRight" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="SysAreaMiddle" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="SysAreaRight" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="NewTitlebarLeft" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="SysAreaRight" dimension="Width">
+                                    <DimOperator op="Add">
+                                        <ImageDim imageset="TaharezLook" image="SysAreaMiddle" dimension="Width">
+                                            <DimOperator op="Add">
+                                                <ImageDim imageset="TaharezLook" image="NewTitlebarRight" dimension="Width" />
+                                            </DimOperator>
+                                        </ImageDim>
+                                    </DimOperator>
+                                </ImageDim>
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="NewTitlebarMiddle" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="caption">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="NewTitlebarLeft" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" offset="-75" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <ColourProperty name="CaptionColour" />
+                <VertFormat type="CentreAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <StateImagery name="Active">
+            <Layer>
+                <Section section="main" />
+                <Section section="caption" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Inactive">
+            <Layer>
+                <Section section="main" />
+                <Section section="caption" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="caption">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/FrameWindow
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/FrameWindow">
+        <Property name="NSSizingCursorImage" value="set:TaharezLook image:MouseNoSoCursor" />
+        <Property name="EWSizingCursorImage" value="set:TaharezLook image:MouseEsWeCursor" />
+        <Property name="NWSESizingCursorImage" value="set:TaharezLook image:MouseNwSeCursor" />
+        <Property name="NESWSizingCursorImage" value="set:TaharezLook image:MouseNeSwCursor" />
+        <NamedArea name="ClientWithTitleWithFrame">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="WindowTopLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="WindowTopRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="WindowBottomEdge" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ClientWithTitleNoFrame">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="BottomEdge" ><WidgetDim dimension="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ClientNoTitleWithFrame">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="WindowTopLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="WindowTopEdge" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="WindowTopRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="WindowBottomEdge" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ClientNoTitleNoFrame">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </NamedArea>
+        <Child type="TaharezLook/Titlebar" nameSuffix="__auto_titlebar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><FontDim type="LineSpacing" padding="8" /></Dim>
+            </Area>
+            <Property name="AlwaysOnTop" value="False" />
+        </Child>
+        <Child type="TaharezLook/SystemButton" nameSuffix="__auto_closebutton__">
+            <Area>
+                <Dim type="LeftEdge" >
+                    <UnifiedDim scale="1" type="LeftEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="SysAreaRight" dimension="Width">
+                                <DimOperator op="Add">
+                                    <ImageDim imageset="TaharezLook" image="SysAreaMiddle" dimension="Width" />
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="TopEdge" >
+                    <AbsoluteDim value="0.5">
+                        <DimOperator op="Multiply">
+                            <WidgetDim widget="__auto_titlebar__" dimension="Height">
+                                <DimOperator op="Subtract">
+                                    <ImageDim imageset="TaharezLook" image="NewCloseButtonNormal" dimension="Width" />
+                                </DimOperator>
+                            </WidgetDim>
+                        </DimOperator>
+                    </AbsoluteDim>
+                </Dim>
+                <Dim type="Width" ><ImageDim imageset="TaharezLook" image="NewCloseButtonNormal" dimension="Width" /></Dim>
+                <Dim type="Height" ><ImageDim imageset="TaharezLook" image="NewCloseButtonNormal" dimension="Width" /></Dim>
+            </Area>
+            <Property name="AlwaysOnTop" value="True" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:NewCloseButtonNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:NewCloseButtonHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:NewCloseButtonPressed" />
+        </Child>
+        <ImagerySection name="withtitle_frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+                </Area>
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="WindowBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="WindowBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="WindowLeftEdge" />
+                <Image type="RightEdge" imageset="TaharezLook" image="WindowRightEdge" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="WindowBottomEdge" />
+                <Image type="Background" imageset="TaharezLook" image="ClientBrush" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Tiled" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="notitle_frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="WindowTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="WindowTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="WindowBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="WindowBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="WindowLeftEdge" />
+                <Image type="RightEdge" imageset="TaharezLook" image="WindowRightEdge" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="WindowBottomEdge" />
+                <Image type="Background" imageset="TaharezLook" image="ClientBrush" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Tiled" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="withtitle_noframe_client_area">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><WidgetDim widget="__auto_titlebar__" dimension="Height" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="ClientBrush" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="notitle_noframe_client_area">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="ClientBrush" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="ActiveWithTitleWithFrame">
+            <Layer>
+                <Section section="withtitle_frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveWithTitleWithFrame">
+            <Layer>
+                <Section section="withtitle_frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledWithTitleWithFrame">
+            <Layer>
+                <Section section="withtitle_frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ActiveWithTitleNoFrame">
+            <Layer>
+                <Section section="withtitle_noframe_client_area" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveWithTitleNoFrame">
+            <Layer>
+                <Section section="withtitle_noframe_client_area" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledWithTitleNoFrame">
+            <Layer>
+                <Section section="withtitle_noframe_client_area">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ActiveNoTitleWithFrame">
+            <Layer>
+                <Section section="notitle_frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveNoTitleWithFrame">
+            <Layer>
+                <Section section="notitle_frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledNoTitleWithFrame">
+            <Layer>
+                <Section section="notitle_frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ActiveNoTitleNoFrame">
+            <Layer>
+                <Section section="notitle_noframe_client_area" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveNoTitleNoFrame">
+            <Layer>
+                <Section section="notitle_noframe_client_area" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledNoTitleNoFrame">
+            <Layer>
+                <Section section="notitle_noframe_client_area">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ProgressBar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ProgressBar">
+        <NamedArea name="ProgressArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ProgressBarLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ProgressBarRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="ProgressBarLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ProgressBarRight" />
+                <Image type="Background" imageset="TaharezLook" image="ProgressBarMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="progress_lights" >
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="ProgressBarLitSegment" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledProgress">
+            <Layer>
+                <Section section="progress_lights" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledProgress">
+            <Layer>
+                <Section section="progress_lights">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/AlternateProgressBar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/AltProgressBar">
+        <NamedArea name="ProgressArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="AltProgressLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="2" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="AltProgressRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-4" type="Height" /></Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="AltProgressLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="AltProgressRight" />
+                <Image type="Background" imageset="TaharezLook" image="AltProgressMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="progress_lights" >
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight1" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.1" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight2" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.2" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight3" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.3" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight4" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.4" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight5" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.5" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight6" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.6" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight7" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.7" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight8" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.8" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight9" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.9" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="AltProgressLight10" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Tiled" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledProgress">
+            <Layer>
+                <Section section="progress_lights" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledProgress">
+            <Layer>
+                <Section section="progress_lights">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/VUMeter (progress bar)
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/VUMeter">
+        <Property name="VerticalProgress" value="True" />
+        <NamedArea name="ProgressArea">
+            <Area>
+                <Dim type="LeftEdge" ><UnifiedDim scale="0" type="LeftEdge" /></Dim>
+                <Dim type="TopEdge" ><UnifiedDim scale="0" type="TopEdge" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="progress_lights" >
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><UnifiedDim scale="0.5" type="TopEdge" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="0.5" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="TextSelectionBrush" />
+                <Colours topLeft="FF00FF00" topRight="FF00FF00" bottomLeft="FF00FF00" bottomRight="FF00FF00" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><UnifiedDim scale="0.2" type="TopEdge" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="0.3" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="TextSelectionBrush" />
+                <Colours topLeft="FFFFFF00" topRight="FFFFFF00" bottomLeft="FFFFFF00" bottomRight="FFFFFF00" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" ><UnifiedDim scale="0" type="TopEdge" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="0.2" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="TextSelectionBrush" />
+                <Colours topLeft="FFFF0000" topRight="FFFF0000" bottomLeft="FFFF0000" bottomRight="FFFF0000" />
+                <VertFormat type="Tiled" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+        </StateImagery>
+        <StateImagery name="Disabled">
+        </StateImagery>
+        <StateImagery name="EnabledProgress">
+            <Layer>
+                <Section section="progress_lights" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledProgress">
+            <Layer>
+                <Section section="progress_lights">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/SliderThumb
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/SliderThumb">
+        <Property name="VertFree" value="True" />
+        <ImagerySection name="normal">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertSliderThumbNormal" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertSliderThumbHover" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Pushed">
+            <Layer>
+                <Section section="hover" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Slider
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Slider">
+        <Property name="VerticalSlider" value="True" />
+        <Property name="MouseButtonDownAutoRepeat" value="True" />
+        <Property name="WantsMultiClickEvents" value="False" />
+        <NamedArea name="ThumbTrackArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/SliderThumb" nameSuffix="__auto_thumb__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                <Dim type="Height" ><ImageDim imageset="TaharezLook" image="VertSliderThumbNormal" dimension="Height" /></Dim>
+            </Area>
+        </Child>
+        <ImagerySection name="main">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="3" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" offset="-6" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertSliderBody" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/HorizontalScrollbarThumb
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/HorizontalScrollbarThumb">
+        <Property name="HorzFree" value="True" />
+        <ImagerySection name="normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="MiniHorzScrollThumbLeftNormal" />
+                <Image type="RightEdge" imageset="TaharezLook" image="MiniHorzScrollThumbRightNormal" />
+                <Image type="Background" imageset="TaharezLook" image="MiniHorzScrollThumbMiddleNormal" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="MiniHorzScrollThumbLeftHover" />
+                <Image type="RightEdge" imageset="TaharezLook" image="MiniHorzScrollThumbRightHover" />
+                <Image type="Background" imageset="TaharezLook" image="MiniHorzScrollThumbMiddleHover" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Pushed">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/HorizontalScrollbar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/HorizontalScrollbar">
+        <NamedArea name="ThumbTrackArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1.0" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MiniHorzScrollRightNormal" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_incbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><ImageDim imageset="TaharezLook" image="MiniHorzScrollRightNormal" dimension="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:MiniHorzScrollRightNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:MiniHorzScrollRightHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:MiniHorzScrollRightNormal" />
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_decbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><ImageDim imageset="TaharezLook" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:MiniHorzScrollLeftNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:MiniHorzScrollLeftHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:MiniHorzScrollLeftNormal" />
+        </Child>
+        <Child  type="TaharezLook/HorizontalScrollbarThumb" nameSuffix="__auto_thumb__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </Child>
+        <ImagerySection name="main">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1.0" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="MiniHorzScrollRightNormal" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="MiniHorzScrollBarSegment" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/VerticalScrollbarThumb
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/VerticalScrollbarThumb">
+        <Property name="VertFree" value="True" />
+        <ImagerySection name="normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image type="TopEdge" imageset="TaharezLook" image="MiniVertScrollThumbTopNormal" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="MiniVertScrollThumbBottomNormal" />
+                <Image type="Background" imageset="TaharezLook" image="MiniVertScrollThumbMiddleNormal" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image type="TopEdge" imageset="TaharezLook" image="MiniVertScrollThumbTopHover" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="MiniVertScrollThumbBottomHover" />
+                <Image type="Background" imageset="TaharezLook" image="MiniVertScrollThumbMiddleHover" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Pushed">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/VerticalScrollbar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/VerticalScrollbar">
+        <Property name="VerticalScrollbar" value="True" />
+        <NamedArea name="ThumbTrackArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1.0" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MiniVertScrollDownNormal" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_incbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><ImageDim imageset="TaharezLook" image="MiniVertScrollDownNormal" dimension="Height" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:MiniVertScrollDownNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:MiniVertScrollDownHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:MiniVertScrollDownNormal" />
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_decbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><ImageDim imageset="TaharezLook" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
+            </Area>
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:MiniVertScrollUpNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:MiniVertScrollUpHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:MiniVertScrollUpNormal" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbarThumb" nameSuffix="__auto_thumb__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="0.1" type="Height" /></Dim>
+            </Area>
+        </Child>
+        <ImagerySection name="main">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                    <Dim type="BottomEdge" >
+                        <UnifiedDim scale="1.0" type="BottomEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="MiniVertScrollDownNormal" dimension="Height" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="MiniVertScrollBarSegment" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="CentreAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Listbox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Listbox">
+        <NamedArea name="ItemRenderingArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ListboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ListboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ListboxRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ListboxBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ListboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ListboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ListboxRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ListboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ListboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ListboxBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ListboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ListboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="ListboxTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="ListboxTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="ListboxBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="ListboxBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="ListboxLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ListboxRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="ListboxTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="ListboxBottom" />
+                <Image type="Background" imageset="TaharezLook" image="ListboxBackdrop" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ComboDropList
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ComboDropList">
+        <NamedArea name="ItemRenderingArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ComboboxListRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ComboboxListBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ComboboxListRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="ComboboxListBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="ComboboxListTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="ComboboxListTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="ComboboxListTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="ComboboxListBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="ComboboxListBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="ComboboxListLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="ComboboxListRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="ComboboxListTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="ComboboxListBottom" />
+                <Image type="Background" imageset="TaharezLook" image="ComboboxListBackdrop" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ComboEditbox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ComboEditbox">
+        <Property name="MouseCursorImage" value="set:TaharezLook image:MouseTextBar" />
+        <NamedArea name="TextArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" offset="-5" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" offset="-5" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="container_normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image type="LeftEdge" imageset="TaharezLook" image="ComboboxEditLeft" />
+                <Image type="Background" imageset="TaharezLook" image="ComboboxEditMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="selection">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="TextSelectionBrush" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="Carat">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><ImageDim imageset="TaharezLook" image="EditBoxCarat" dimension="Width" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="EditBoxCarat" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="container_normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ReadOnly">
+            <Layer>
+                <Section section="container_normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="container_normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ActiveSelection">
+            <Layer>
+                <Section section="selection">
+                    <ColourProperty name="ActiveSelectionColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="InactiveSelection">
+            <Layer>
+                <Section section="selection">
+                    <ColourProperty name="InactiveSelectionColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Combobox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Combobox">
+        <Child  type="TaharezLook/ComboEditbox" nameSuffix="__auto_editbox__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <FontDim type="LineSpacing">
+                                <DimOperator op="Multiply">
+                                    <AbsoluteDim value="1.5" />
+                                </DimOperator>
+                            </FontDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="Height" >
+                    <FontDim type="LineSpacing">
+                        <DimOperator op="Multiply">
+                            <AbsoluteDim value="1.5" />
+                        </DimOperator>
+                    </FontDim>
+                </Dim>
+            </Area>
+        </Child>
+        <Child  type="TaharezLook/ComboDropList" nameSuffix="__auto_droplist__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_editbox__" dimension="BottomEdge" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+            </Area>
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_button__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><WidgetDim widget="__auto_editbox__" dimension="Height" /></Dim>
+                <Dim type="Height" ><WidgetDim widget="__auto_editbox__" dimension="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:ComboboxListButtonNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:ComboboxListButtonHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:ComboboxListButtonNormal" />
+        </Child>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Spinner
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Spinner">
+        <Child  type="TaharezLook/Editbox" nameSuffix="__auto_editbox__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_incbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="0.5" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:VertScrollUpNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:VertScrollUpHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:VertScrollUpNormal" />
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_decbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><UnifiedDim scale="0.5" type="TopEdge" /></Dim>
+                <Dim type="Width" ><ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="0.5" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:VertScrollDownNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:VertScrollDownHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:VertScrollDownNormal" />
+        </Child>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/StaticShared
+        (Shared imagery components for static widgets)
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/StaticShared">
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="StaticTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="StaticTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="StaticBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="StaticBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="StaticLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="StaticRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="StaticTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="StaticBottom" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="background">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="StaticRight" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="BottomEdge" >
+                        <UnifiedDim scale="1" type="BottomEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="StaticBottom" dimension="Height" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="StaticBackdrop" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/StaticImage
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/StaticImage">
+        <Property name="FrameEnabled" value="True" />
+        <Property name="BackgroundEnabled" value="True" />
+        <NamedArea name="WithFrameImageRenderArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="NoFrameImageRenderArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </NamedArea>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+        <StateImagery name="EnabledFrame">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledFrame">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledBackground">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="background" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledBackground">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="background" />
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/StaticText
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/StaticText">
+        <Property name="FrameEnabled" value="True" />
+        <Property name="BackgroundEnabled" value="True" />
+        <NamedArea name="TextRenderArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextRenderAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextRenderAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="StaticBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextRenderAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="StaticLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="StaticTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+        <StateImagery name="EnabledFrame">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledFrame">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledBackground">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="background" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledBackground">
+            <Layer>
+                <Section look="TaharezLook/StaticShared" section="background" />
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ListHeaderSegment
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ListHeaderSegment">
+        <Property name="SizingCursorImage" value="set:TaharezLook image:MouseEsWeCursor" />
+        <Property name="MovingCursorImage" value="set:TaharezLook image:MouseMoveCursor" />
+        <ImagerySection name="segment_normal">
+            <Colours topLeft="FFDDDDDD" topRight="FFDDDDDD" bottomLeft="FFDDDDDD" bottomRight="FFDDDDDD" />
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="HeaderBarSplitterNormal" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarBackdropNormal" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="segment_hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="HeaderBarSplitterNormal" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarBackdropHover" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="splitter_normal">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarSplitterNormal" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="splitter_hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarSplitterHover" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="ascend_icon">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="3" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="3" /></Dim>
+                    <Dim type="Width" ><ImageDim imageset="TaharezLook" image="HeaderBarSortUp" dimension="Width" /></Dim>
+                    <Dim type="Height" ><ImageDim imageset="TaharezLook" image="HeaderBarSortUp" dimension="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarSortUp" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="descend_icon">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="3" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="3" /></Dim>
+                    <Dim type="Width" ><ImageDim imageset="TaharezLook" image="HeaderBarSortDown" dimension="Width" /></Dim>
+                    <Dim type="Height" ><ImageDim imageset="TaharezLook" image="HeaderBarSortDown" dimension="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="HeaderBarSortDown" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" >
+                        <ImageDim imageset="TaharezLook" image="HeaderBarSortUp" dimension="Width">
+                            <DimOperator op="Add">
+                                <AbsoluteDim value="5" />
+                            </DimOperator>
+                        </ImageDim>
+                    </Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1" type="RightEdge" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <VertFormat type="CentreAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="segment_normal" />
+                <Section section="splitter_normal" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="segment_hover" />
+                <Section section="splitter_normal" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="SplitterHover">
+            <Layer>
+                <Section section="segment_normal" />
+                <Section section="splitter_hover" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DragGhost" clipped="false" >
+            <Layer priority="1" >
+                <Section section="segment_normal">
+                    <Colours topLeft="90FFFFFF" topRight="90FFFFFF" bottomLeft="90FFFFFF" bottomRight="90FFFFFF" />
+                </Section>
+                <Section section="splitter_normal">
+                    <Colours topLeft="90FFFFFF" topRight="90FFFFFF" bottomLeft="90FFFFFF" bottomRight="90FFFFFF" />
+                </Section>
+                <Section section="label">
+                    <Colours topLeft="90FFFFFF" topRight="90FFFFFF" bottomLeft="90FFFFFF" bottomRight="90FFFFFF" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="AscendingSortIcon">
+            <Layer>
+                <Section section="ascend_icon" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DescendingSortIcon">
+            <Layer>
+                <Section section="descend_icon" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="GhostAscendingSortIcon" clipped="false">
+            <Layer priority="1" >
+                <Section section="ascend_icon">
+                    <Colours topLeft="90FFFFFF" topRight="90FFFFFF" bottomLeft="90FFFFFF" bottomRight="90FFFFFF" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="GhostDescendingSortIcon" clipped="false">
+            <Layer priority="1" >
+                <Section section="descend_icon">
+                    <Colours topLeft="90FFFFFF" topRight="90FFFFFF" bottomLeft="90FFFFFF" bottomRight="90FFFFFF" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="segment_normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="splitter_normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ListHeader
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ListHeader">
+        <Property name="SegmentWidgetType" value="TaharezLook/ListHeaderSegment" />
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/MultiColumnList
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/MultiColumnList">
+        <NamedArea name="ItemRenderingArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiListRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiListBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiListRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiListBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ItemRenderingAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiListLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/ListHeader" nameSuffix="__auto_listheader__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="2" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="2" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1" offset="-2" type="RightEdge" /></Dim>
+                <Dim type="Height" >
+                    <FontDim type="LineSpacing">
+                        <DimOperator op="Multiply">
+                            <AbsoluteDim value="1.5" />
+                        </DimOperator>
+                    </FontDim>
+                </Dim>
+            </Area>
+        </Child>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-12" type="BottomEdge" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="MultiListTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="MultiListTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="MultiListBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="MultiListBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="MultiListLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="MultiListRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="MultiListTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="MultiListBottom" />
+                <Image type="Background" imageset="TaharezLook" image="MultiListBackdrop" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/MultiLineEditbox
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/MultiLineEditbox">
+        <Property name="MouseCursorImage" value="set:TaharezLook image:MouseTextBar" />
+        <Property name="SelectionBrushImage" value="set:TaharezLook image:MultiLineEditboxSelectionBrush" />
+        <NamedArea name="TextArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiLineEditboxRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiLineEditboxBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiLineEditboxRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="MultiLineEditboxBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="TextAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MultiLineEditboxTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="MultiLineEditboxTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="MultiLineEditboxTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="MultiLineEditboxBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="MultiLineEditboxBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="MultiLineEditboxLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="MultiLineEditboxRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="MultiLineEditboxTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="MultiLineEditboxBottom" />
+                <Image type="Background" imageset="TaharezLook" image="MultiLineEditboxBackdrop" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="Carat">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><ImageDim imageset="TaharezLook" image="EditBoxCarat" dimension="Width" /></Dim>
+                    <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="EditBoxCarat" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="ReadOnly">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/Tooltip
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Tooltip">
+        <NamedArea name="TextArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="TooltipLeftEdge" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="TooltipTopEdge" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="TooltipRightEdge" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="TooltipBottomEdge" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="TooltipTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="TooltipTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="TooltipBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="TooltipBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="TooltipLeftEdge" />
+                <Image type="RightEdge" imageset="TaharezLook" image="TooltipRightEdge" />
+                <Image type="TopEdge" imageset="TaharezLook" image="TooltipTopEdge" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="TooltipBottomEdge" />
+                <Image type="Background" imageset="TaharezLook" image="TooltipMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="TooltipLeftEdge" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="TooltipTopEdge" dimension="Height" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="TooltipRightEdge" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="BottomEdge" >
+                        <UnifiedDim scale="1" type="BottomEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="TooltipBottomEdge" dimension="Height" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                </Area>
+                <Colours topLeft="FF000000" topRight="FF000000" bottomLeft="FF000000" bottomRight="FF000000" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="CentreAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/ScrollablePane
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/ScrollablePane">
+        <NamedArea name="ViewableArea">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ViewableAreaHScroll">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ViewableAreaVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+            </Area>
+        </NamedArea>
+        <NamedArea name="ViewableAreaHVScroll">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_vscrollbar__" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_hscrollbar__" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
+                <Dim type="Height" ><AbsoluteDim value="12" /></Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+        </Child>
+        <Child  type="TaharezLook/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><AbsoluteDim value="12" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
+            </Area>
+            <HorzAlignment type="RightAligned" />
+        </Child>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/TabButton
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/TabButton">
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="CentreAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <ImagerySection name="normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="TabButtonUpperLeftNormal" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="TabButtonUpperRightNormal" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="TabButtonLowerLeftNormal" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="TabButtonLowerRightNormal" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="TabButtonLeftNormal" />
+                <Image type="RightEdge" imageset="TaharezLook" image="TabButtonRightNormal" />
+                <Image type="TopEdge" imageset="TaharezLook" image="TabButtonUpperNormal" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="TabButtonLowerNormal" />
+                <Image type="Background" imageset="TaharezLook" image="TabButtonMiddleNormal" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="selected">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="TabButtonUpperLeftSelected" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="TabButtonUpperRightSelected" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="TabButtonLowerLeftSelected" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="TabButtonLowerRightSelected" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="TabButtonLeftSelected" />
+                <Image type="RightEdge" imageset="TaharezLook" image="TabButtonRightSelected" />
+                <Image type="TopEdge" imageset="TaharezLook" image="TabButtonUpperSelected" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="TabButtonLowerSelected" />
+                <Image type="Background" imageset="TaharezLook" image="TabButtonMiddleSelected" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+                <Section section="label">
+                    <ColourProperty name="NormalTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="selected" />
+                <Section section="label">
+                    <ColourProperty name="HoverTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Selected">
+            <Layer>
+                <Section section="selected" />
+                <Section section="label">
+                    <ColourProperty name="PushedTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <ColourProperty name="DisabledTextColour" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/TabPane
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/TabPane">
+        <ImagerySection name="normal">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="TabPaneLowerLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="TabPaneLowerRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="TabPaneLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="TabPaneRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="TabControlButtonPaneFiller" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="TabPaneLower" />
+                <Image type="Background" imageset="TaharezLook" image="TabPaneMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/TabControl
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/TabControl">
+        <Property name="TabButtonType" value="TaharezLook/TabButton" />
+        <Child  type="TaharezLook/TabPane" nameSuffix="__auto_TabPane__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </Child>
+        <Child  type="DefaultWindow" nameSuffix="__auto_TabPane__Buttons">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+            </Area>
+        </Child>
+        <StateImagery name="Enabled" />
+        <StateImagery name="Disabled" />
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/MenuItem
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/MenuItem">
+        <ImagerySection name="label">
+            <TextComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="MenuLeft" dimension="Width" /></Dim>
+                    <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="MenuTop" dimension="Height" /></Dim>
+                    <Dim type="RightEdge" >
+                        <UnifiedDim scale="1" type="RightEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="MenuRight" dimension="Width" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                    <Dim type="BottomEdge" >
+                        <UnifiedDim scale="1" type="BottomEdge">
+                            <DimOperator op="Subtract">
+                                <ImageDim imageset="TaharezLook" image="MenuBottom" dimension="Height" />
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                </Area>
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="LeftAligned" />
+            </TextComponent>
+        </ImagerySection>
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="MenuTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="MenuTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="MenuBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="MenuBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="MenuLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="MenuRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="MenuTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="MenuBottom" />
+                <Image type="Background" imageset="TaharezLook" image="MenuMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <ImagerySection name="popup_arrow_right">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="PopupMenuArrowRight" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="popup_arrow_left">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="PopupMenuArrowLeft" />
+                <VertFormat type="CentreAligned" />
+                <HorzFormat type="RightAligned" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="EnabledNormal">
+            <Layer>
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledHover">
+            <Layer>
+                <Section section="frame" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledPushed">
+            <Layer>
+                <Section section="frame" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="EnabledPopupOpen">
+            <Layer>
+                <Section section="frame" />
+                <Section section="label" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledNormal">
+            <Layer>
+                <Section section="label">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledHover">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledPushed">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="DisabledPopupOpen">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+                <Section section="label">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+        <StateImagery name="PopupClosedIcon">
+            <Layer>
+                <Section section="popup_arrow_right" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="PopupOpenIcon">
+            <Layer>
+                <Section section="popup_arrow_left" />
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/PopupMenu
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/PopupMenu">
+        <NamedArea name="ItemRenderArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="PopupMenuFrameLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="PopupMenuFrameTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="PopupMenuFrameRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="PopupMenuFrameBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="PopupMenuFrameTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="PopupMenuFrameTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="PopupMenuFrameBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="PopupMenuFrameBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="PopupMenuFrameLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="PopupMenuFrameRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="PopupMenuFrameTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="PopupMenuFrameBottom" />
+                <Image type="Background" imageset="TaharezLook" image="PopupMenuMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    
+    <!--
+    ***************************************************
+        TaharezLook/Menubar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/Menubar">
+        <NamedArea name="ItemRenderArea">
+            <Area>
+                <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="PopupMenuFrameLeft" dimension="Width" /></Dim>
+                <Dim type="TopEdge" ><ImageDim imageset="TaharezLook" image="PopupMenuFrameTop" dimension="Height" /></Dim>
+                <Dim type="RightEdge" >
+                    <UnifiedDim scale="1" type="RightEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="PopupMenuFrameRight" dimension="Width" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <ImageDim imageset="TaharezLook" image="PopupMenuFrameBottom" dimension="Height" />
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <ImagerySection name="frame">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopLeftCorner" imageset="TaharezLook" image="PopupMenuFrameTopLeft" />
+                <Image type="TopRightCorner" imageset="TaharezLook" image="PopupMenuFrameTopRight" />
+                <Image type="BottomLeftCorner" imageset="TaharezLook" image="PopupMenuFrameBottomLeft" />
+                <Image type="BottomRightCorner" imageset="TaharezLook" image="PopupMenuFrameBottomRight" />
+                <Image type="LeftEdge" imageset="TaharezLook" image="PopupMenuFrameLeft" />
+                <Image type="RightEdge" imageset="TaharezLook" image="PopupMenuFrameRight" />
+                <Image type="TopEdge" imageset="TaharezLook" image="PopupMenuFrameTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="PopupMenuFrameBottom" />
+                <Image type="Background" imageset="TaharezLook" image="PopupMenuMiddle" />
+            </FrameComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="frame" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="frame">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/LargeVerticalScrollbarThumb
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/LargeVerticalScrollbarThumb">
+        <Property name="VertFree" value="True" />
+        <ImagerySection name="normal">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertScrollThumbNormal" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <ImagerySection name="hover">
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertScrollThumbHover" />
+                <VertFormat type="Stretched" />
+                <HorzFormat type="Stretched" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Normal">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Hover">
+            <Layer>
+                <Section section="hover" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Pushed">
+            <Layer>
+                <Section section="normal" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="normal">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+    
+    <!--
+    ***************************************************
+        TaharezLook/LargeVerticalScrollbar
+    ***************************************************
+    -->
+    <WidgetLook name="TaharezLook/LargeVerticalScrollbar">
+        <Property name="VerticalScrollbar" value="True" />
+        <NamedArea name="ThumbTrackArea">
+            <Area>
+                <Dim type="LeftEdge" ><UnifiedDim scale="0.325" type="LeftEdge" /></Dim>
+                <Dim type="TopEdge" >
+                    <WidgetDim widget="__auto_decbtn__" dimension="Height">
+                        <DimOperator op="Add">
+                            <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                                <DimOperator op="Multiply">
+                                    <AbsoluteDim value="0.5" />
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </WidgetDim>
+                </Dim>
+                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                <Dim type="BottomEdge" >
+                    <UnifiedDim scale="1.0" type="BottomEdge">
+                        <DimOperator op="Subtract">
+                            <WidgetDim widget="__auto_decbtn__" dimension="Height">
+                                <DimOperator op="Add">
+                                    <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                                        <DimOperator op="Multiply">
+                                            <AbsoluteDim value="0.5" />
+                                        </DimOperator>
+                                    </ImageDim>
+                                </DimOperator>
+                            </WidgetDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </NamedArea>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_incbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><UnifiedDim scale="0.25" type="LeftEdge" /></Dim>
+                <Dim type="TopEdge" >
+                    <AbsoluteDim value="-1">
+                        <DimOperator op="Multiply">
+                            <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                                <DimOperator op="Multiply">
+                                    <AbsoluteDim value="0.5" />
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </AbsoluteDim>
+                </Dim>
+                <Dim type="Width" ><UnifiedDim scale="0.6" type="Width" /></Dim>
+                <Dim type="Height" >
+                    <UnifiedDim scale="0.6" type="Width">
+                        <DimOperator op="Multiply">
+                            <ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Width">
+                                <DimOperator op="Divide">
+                                    <ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Height"/>
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+            <VertAlignment type="BottomAligned" />
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:VertScrollDownNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:VertScrollDownHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:VertScrollDownNormal" />
+        </Child>
+        <Child  type="TaharezLook/Button" nameSuffix="__auto_decbtn__">
+            <Area>
+                <Dim type="LeftEdge" ><UnifiedDim scale="0.25" type="LeftEdge" /></Dim>
+                <Dim type="TopEdge">
+                    <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                        <DimOperator op="Multiply">
+                            <AbsoluteDim value="0.5" />
+                        </DimOperator>
+                    </ImageDim>
+                </Dim>
+                <Dim type="Width" ><UnifiedDim scale="0.6" type="Width" /></Dim>
+                <Dim type="Height" >
+                    <UnifiedDim scale="0.6" type="Width">
+                        <DimOperator op="Multiply">
+                            <ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Width">
+                                <DimOperator op="Divide">
+                                    <ImageDim imageset="TaharezLook" image="VertScrollUpNormal" dimension="Height"/>
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+            <Property name="UseStandardImagery" value="False" />
+            <Property name="NormalImage" value="set:TaharezLook image:VertScrollUpNormal" />
+            <Property name="HoverImage" value="set:TaharezLook image:VertScrollUpHover" />
+            <Property name="PushedImage" value="set:TaharezLook image:VertScrollUpNormal" />
+        </Child>
+        <Child  type="TaharezLook/LargeVerticalScrollbarThumb" nameSuffix="__auto_thumb__">
+            <Area>
+                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                <Dim type="Width" ><UnifiedDim scale="0.4" type="Width" /></Dim>
+                <Dim type="Height" >
+                    <UnifiedDim scale="0.4" type="Width">
+                        <DimOperator op="Multiply">
+                            <ImageDim imageset="TaharezLook" image="VertScrollThumbNormal" dimension="Height">
+                                <DimOperator op="Divide">
+                                    <ImageDim imageset="TaharezLook" image="VertScrollThumbNormal" dimension="Width"/>
+                                </DimOperator>
+                            </ImageDim>
+                        </DimOperator>
+                    </UnifiedDim>
+                </Dim>
+            </Area>
+        </Child>
+        <ImagerySection name="main">
+            <FrameComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+                    <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+                    <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+                </Area>
+                <Image type="TopEdge" imageset="TaharezLook" image="VertScrollTop" />
+                <Image type="BottomEdge" imageset="TaharezLook" image="VertScrollBottom" />
+                <Image type="Background" imageset="TaharezLook" image="VertScrollMiddle" />
+            </FrameComponent>
+            <ImageryComponent>
+                <Area>
+                    <Dim type="LeftEdge" ><UnifiedDim scale="0.45" type="LeftEdge" /></Dim>
+                    <Dim type="TopEdge" >
+                        <WidgetDim widget="__auto_decbtn__" dimension="Height">
+                            <DimOperator op="Add">
+                                <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                                    <DimOperator op="Multiply">
+                                        <AbsoluteDim value="0.5" />
+                                    </DimOperator>
+                                </ImageDim>
+                            </DimOperator>
+                        </WidgetDim>
+                    </Dim>
+                    <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+                    <Dim type="BottomEdge" >
+                        <UnifiedDim scale="1.0" type="BottomEdge">
+                            <DimOperator op="Subtract">
+                                <WidgetDim widget="__auto_decbtn__" dimension="Height">
+                                    <DimOperator op="Add">
+                                        <ImageDim imageset="TaharezLook" image="VertScrollTop" dimension="Height">
+                                            <DimOperator op="Multiply">
+                                                <AbsoluteDim value="0.5" />
+                                            </DimOperator>
+                                        </ImageDim>
+                                    </DimOperator>
+                                </WidgetDim>
+                            </DimOperator>
+                        </UnifiedDim>
+                    </Dim>
+                </Area>
+                <Image imageset="TaharezLook" image="VertScrollBarSegment" />
+                <VertFormat type="Tiled" />
+            </ImageryComponent>
+        </ImagerySection>
+        <StateImagery name="Enabled">
+            <Layer>
+                <Section section="main" />
+            </Layer>
+        </StateImagery>
+        <StateImagery name="Disabled">
+            <Layer>
+                <Section section="main">
+                    <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+                </Section>
+            </Layer>
+        </StateImagery>
+    </WidgetLook>
+</Falagard>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/cegui8.layout
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/cegui8.layout	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/cegui8.layout	(revision 1049)
@@ -0,0 +1,130 @@
+<?xml version="1.0" ?>
+<!-- Layout file from CEGUI Demo8 -->
+<GUILayout>
+<Window Type="DefaultGUISheet" Name="demo_root">
+
+	<Window Type="DefaultGUISheet" Name="Demo8">
+
+		<Property Name="RelativeMaxSize" Value="w:1 h:2" />
+		<Property Name="Size" Value="w:1 h:2" />
+
+		<Window Type="TaharezLook/VerticalScrollbar" Name="Demo8/ViewScroll">
+			<Property Name="Position" Value="x:0.0 y:0.0" />
+			<Property Name="Size" Value="w:0.03 h:0.75" />
+			<Property Name="DocumentSize" Value="2" />
+			<Property Name="PageSize" Value="1" />
+			<Property Name="StepSize" Value="0.01" />
+			<Property Name="OverlapSize" Value="0.5" />
+		</Window>
+
+        <Window Type="TaharezLook/FrameWindow" Name="Demo8/Window1">
+			<Property Name="Position" Value="x:0.05 y:0.1" />
+			<Property Name="RelativeMaxSize" Value="w:0.5 h:1" />
+			<Property Name="AbsoluteMinSize" Value="w:128 h:128" />
+			<Property Name="Size" Value="w:0.4 h:0.35" />
+			<Property Name="Text" Value="Demo 8 - Listbox Demo" />
+
+			<Window Type="TaharezLook/Listbox" Name="Demo8/Window1/Listbox">
+				<Property Name="Position" Value="x:0.05 y:0.1" />
+				<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+				<Property Name="Size" Value="w:0.9 h:0.33" />
+			</Window>
+
+			<Window Type="TaharezLook/StaticText" Name="Demo8/Window1/Controls">
+				<Property Name="Position" Value="x:0.05 y:0.45" />
+				<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+				<Property Name="Size" Value="w:0.9 h:0.5" />
+
+                <Window Type="TaharezLook/HorizontalScrollbar" Name="Demo8/Window1/Controls/Red">
+					<Property Name="Position" Value="x:0.05 y:0.05" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.9 h:0.06" />
+					<Property Name="DocumentSize" Value="255" />
+					<Property Name="PageSize" Value="16" />
+					<Property Name="StepSize" Value="1" />
+					<Property Name="OverlapSize" Value="1" />
+				</Window>
+
+                <Window Type="TaharezLook/HorizontalScrollbar" Name="Demo8/Window1/Controls/Green">
+					<Property Name="Position" Value="x:0.05 y:0.12" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.9 h:0.06" />
+					<Property Name="DocumentSize" Value="256" />
+					<Property Name="PageSize" Value="16" />
+					<Property Name="StepSize" Value="1" />
+					<Property Name="OverlapSize" Value="1" />
+				</Window>
+
+                <Window Type="TaharezLook/HorizontalScrollbar" Name="Demo8/Window1/Controls/Blue">
+					<Property Name="Position" Value="x:0.05 y:0.19" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.9 h:0.06" />
+					<Property Name="DocumentSize" Value="255" />
+					<Property Name="PageSize" Value="16" />
+					<Property Name="StepSize" Value="1" />
+					<Property Name="OverlapSize" Value="1" />
+				</Window>
+
+				<Window Type="TaharezLook/StaticImage" Name="Demo8/Window1/Controls/ColourSample">
+					<Property Name="Position" Value="x:0.05 y:0.26" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.9 h:0.1" />
+					<Property Name="Image" Value="set:TaharezLook image:ListboxSelectionBrush" />
+					<Property Name="ImageColours" Value="tl:0 tr:0 bl:0 br:0" />
+				</Window>
+
+				<Window Type="TaharezLook/Editbox" Name="Demo8/Window1/Controls/Editbox">
+					<Property Name="Position" Value="x:0.05 y:0.38" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.6 h:0.15" />
+				</Window>
+
+                <Window Type="TaharezLook/Button" Name="Demo8/Window1/Controls/Add">
+					<Property Name="Position" Value="x:0.68 y:0.38" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.3 h:0.15" />
+					<Property Name="Text" Value="Add" />
+				</Window>
+
+                <Window Type="TaharezLook/StaticText" Name="Demo8/Window1/Controls/ins1">
+					<Property Name="Position" Value="x:0.05 y:0.55" />
+					<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+					<Property Name="Size" Value="w:0.9 h:0.4" />
+					<Property Name="HorzFormatting" Value="WordWrapCentred" />
+					<Property Name="Text" Value="Use this panel to add items.  The scrollbars change the selection colour." />
+				</Window>
+
+			</Window>
+			
+		</Window>
+
+        <Window Type="TaharezLook/FrameWindow" Name="Demo8/Window2">
+			<Property Name="Position" Value="x:0.55 y:0.1" />
+			<Property Name="RelativeMaxSize" Value="w:0.5 h:1" />
+			<Property Name="AbsoluteMinSize" Value="w:128 h:128" />
+			<Property Name="Size" Value="w:0.4 h:0.3" />
+			<Property Name="Text" Value="Demo 8 - Information Window" />
+
+            <Window Type="TaharezLook/StaticText" Name="Demo8/Window2/Info">
+				<Property Name="Position" Value="x:0.05 y:0.1" />
+				<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+				<Property Name="Size" Value="w:0.9 h:0.3" />
+				<Property Name="HorzFormatting" Value="WordWrapCentred" />
+				<Property Name="Text" Value="The panel below gives some information about the item under the mouse." />
+			</Window>
+	
+            <Window Type="TaharezLook/StaticText" Name="Demo8/Window2/Tips">
+				<Property Name="Position" Value="x:0.05 y:0.5" />
+				<Property Name="RelativeMaxSize" Value="w:1 h:1" />
+				<Property Name="Size" Value="w:0.9 h:0.4" />
+				<Property Name="HorzFormatting" Value="WordWrapCentred" />
+			</Window>
+
+		</Window>
+
+
+	</Window>
+
+</Window>
+
+</GUILayout>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/Font.xsd
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/Font.xsd	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/Font.xsd	(revision 1049)
@@ -0,0 +1,49 @@
+<?xml version="1.0" ?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+	<xsd:element name="Font" type="FontType" />
+
+	<xsd:complexType name="FontType">
+		<xsd:sequence>
+			<xsd:element name="Mapping" type="MapType" maxOccurs="unbounded" minOccurs="0" />
+			<xsd:element name="GlyphSet" type="GlyphSetType" maxOccurs="unbounded" minOccurs="0" />
+			<xsd:element name="GlyphRange" type="GlyphRangeType" maxOccurs="unbounded" minOccurs="0" />
+			<xsd:element name="Glyph" type="GlyphType" maxOccurs="unbounded" minOccurs="0" />
+		</xsd:sequence>
+		<xsd:attributeGroup ref="FontAttrs" />
+	</xsd:complexType>
+	<xsd:complexType name="MapType">
+		<xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
+		<xsd:attribute name="Image" type="xsd:string" use="required" />
+		<xsd:attribute name="HorzAdvance" type="xsd:integer" use="optional" default="-1" />
+	</xsd:complexType>
+	<xsd:complexType name="GlyphType">
+		<xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="GlyphRangeType">
+		<xsd:attribute name="StartCodepoint" type="xsd:nonNegativeInteger" use="required" />
+		<xsd:attribute name="EndCodepoint" type="xsd:nonNegativeInteger" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="GlyphSetType">
+		<xsd:attribute name="Glyphs" type="xsd:string" use="required" />
+	</xsd:complexType>
+	<xsd:attributeGroup name="FontAttrs">
+		<xsd:attribute name="Name" type="xsd:string" use="required" />
+		<xsd:attribute name="Filename" type="xsd:string" use="required" />
+		<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
+		<xsd:attribute name="Type" use="required">
+			<xsd:simpleType>
+				<xsd:restriction base="xsd:string">
+					<xsd:enumeration value="Dynamic" />
+					<xsd:enumeration value="Static" />
+				</xsd:restriction>
+			</xsd:simpleType>
+		</xsd:attribute>
+		<xsd:attribute name="Size" type="xsd:nonNegativeInteger" use="optional" default="12" />
+		<xsd:attribute name="FirstCodepoint" type="xsd:nonNegativeInteger" use="optional" default="32" />
+		<xsd:attribute name="LastCodepoint" type="xsd:nonNegativeInteger" use="optional" default="127" />
+		<xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
+		<xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
+		<xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
+		<xsd:attribute name="AntiAlias" type="xsd:boolean" use="optional" default="true" />
+	</xsd:attributeGroup>
+</xsd:schema>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUIScheme.xsd
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUIScheme.xsd	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/GUIScheme.xsd	(revision 1049)
@@ -0,0 +1,43 @@
+<?xml version="1.0" ?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+	<xsd:element name="GUIScheme" type="SchemeType" />
+	<xsd:complexType name="SchemeType">
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+			<xsd:element name="Imageset" type="NamedDataType" />
+            <xsd:element name="ImagesetFromImage" type="NamedDataType" />
+			<xsd:element name="Font" type="NamedDataType" />
+            <xsd:element name="LookNFeel" type="FileDataType" />
+			<xsd:element name="WindowSet" type="WindowSetType" />
+			<xsd:element name="WindowAlias" type="WindowAliasType" />
+            <xsd:element name="FalagardMapping" type="FalagardMapType" />
+		</xsd:choice>
+		<xsd:attribute name="Name" type="xsd:string" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="WindowSetType">
+		<xsd:sequence>
+            <xsd:element name="WindowFactory" type="WindowFactoryType" minOccurs="0" maxOccurs="unbounded" />
+		</xsd:sequence>
+		<xsd:attribute name="Filename" type="xsd:string" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="FileDataType">
+        <xsd:attribute name="Filename" type="xsd:string" use="required" />
+        <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
+    </xsd:complexType>
+	<xsd:complexType name="NamedDataType">
+		<xsd:attribute name="Name" type="xsd:string" use="required" />
+		<xsd:attribute name="Filename" type="xsd:string" use="required" />
+		<xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
+	</xsd:complexType>
+	<xsd:complexType name="WindowFactoryType">
+		<xsd:attribute name="Name" type="xsd:string" use="required" />
+	</xsd:complexType>
+	<xsd:complexType name="WindowAliasType">
+		<xsd:attribute name="Alias" type="xsd:string" use="required" />
+		<xsd:attribute name="Target" type="xsd:string" use="required" />
+	</xsd:complexType>
+    <xsd:complexType name="FalagardMapType">
+        <xsd:attribute name="WindowType" type="xsd:string" use="required" />
+        <xsd:attribute name="TargetType" type="xsd:string" use="required" />
+        <xsd:attribute name="LookNFeel" type="xsd:string" use="required" />
+    </xsd:complexType>
+</xsd:schema>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookSkin.scheme
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookSkin.scheme	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/TaharezLookSkin.scheme	(revision 1049)
@@ -0,0 +1,46 @@
+<?xml version="1.0" ?>
+<GUIScheme Name="TaharezLookSkin">
+	<Imageset Name="TaharezLook" Filename="TaharezLook.imageset" />
+	<Font Name="Tahoma-12" Filename="tahoma-12.font" />
+	<Font Name="Tahoma-10" Filename="tahoma-10.font" />
+	<Font Name="Tahoma-8" Filename="tahoma-8.font" />
+	<LookNFeel Filename="TaharezLook.looknfeel" />
+	<WindowSet Filename="CEGUIFalagardBase" />
+	<FalagardMapping WindowType="TaharezLook/AlternateProgressBar" TargetType="Falagard/ProgressBar" LookNFeel="TaharezLook/AltProgressBar" />
+	<FalagardMapping WindowType="TaharezLook/Button" TargetType="Falagard/Button" LookNFeel="TaharezLook/Button" />
+	<FalagardMapping WindowType="TaharezLook/Checkbox" TargetType="Falagard/Checkbox" LookNFeel="TaharezLook/Checkbox" />
+	<FalagardMapping WindowType="TaharezLook/ComboDropList" TargetType="Falagard/ComboDropList" LookNFeel="TaharezLook/ComboDropList" />
+	<FalagardMapping WindowType="TaharezLook/ComboEditbox" TargetType="Falagard/Editbox" LookNFeel="TaharezLook/ComboEditbox" />
+	<FalagardMapping WindowType="TaharezLook/Combobox" TargetType="Falagard/Combobox" LookNFeel="TaharezLook/Combobox" />
+	<FalagardMapping WindowType="TaharezLook/Editbox" TargetType="Falagard/Editbox" LookNFeel="TaharezLook/Editbox" />
+	<FalagardMapping WindowType="TaharezLook/FrameWindow" TargetType="Falagard/FrameWindow" LookNFeel="TaharezLook/FrameWindow" />
+	<FalagardMapping WindowType="TaharezLook/HorizontalScrollbar" TargetType="Falagard/Scrollbar" LookNFeel="TaharezLook/HorizontalScrollbar" />
+	<FalagardMapping WindowType="TaharezLook/HorizontalScrollbarThumb" TargetType="Falagard/Thumb" LookNFeel="TaharezLook/HorizontalScrollbarThumb" />
+	<FalagardMapping WindowType="TaharezLook/LargeVerticalScrollbar" TargetType="Falagard/Scrollbar" LookNFeel="TaharezLook/LargeVerticalScrollbar" />
+	<FalagardMapping WindowType="TaharezLook/LargeVerticalScrollbarThumb" TargetType="Falagard/Thumb" LookNFeel="TaharezLook/LargeVerticalScrollbarThumb" />
+	<FalagardMapping WindowType="TaharezLook/ListHeader" TargetType="Falagard/ListHeader" LookNFeel="TaharezLook/ListHeader" />
+	<FalagardMapping WindowType="TaharezLook/ListHeaderSegment" TargetType="Falagard/ListHeaderSegment" LookNFeel="TaharezLook/ListHeaderSegment" />
+	<FalagardMapping WindowType="TaharezLook/Listbox" TargetType="Falagard/Listbox" LookNFeel="TaharezLook/Listbox" />
+	<FalagardMapping WindowType="TaharezLook/Menubar" TargetType="Falagard/Menubar" LookNFeel="TaharezLook/Menubar" />
+	<FalagardMapping WindowType="TaharezLook/MenuItem" TargetType="Falagard/MenuItem" LookNFeel="TaharezLook/MenuItem" />
+	<FalagardMapping WindowType="TaharezLook/MultiColumnList" TargetType="Falagard/MultiColumnList" LookNFeel="TaharezLook/MultiColumnList" />
+	<FalagardMapping WindowType="TaharezLook/MultiLineEditbox" TargetType="Falagard/MultiLineEditbox" LookNFeel="TaharezLook/MultiLineEditbox" />
+	<FalagardMapping WindowType="TaharezLook/PopupMenu" TargetType="Falagard/PopupMenu" LookNFeel="TaharezLook/PopupMenu" />
+	<FalagardMapping WindowType="TaharezLook/ProgressBar" TargetType="Falagard/ProgressBar" LookNFeel="TaharezLook/ProgressBar" />
+	<FalagardMapping WindowType="TaharezLook/RadioButton" TargetType="Falagard/RadioButton" LookNFeel="TaharezLook/RadioButton" />
+	<FalagardMapping WindowType="TaharezLook/ScrollablePane" TargetType="Falagard/ScrollablePane" LookNFeel="TaharezLook/ScrollablePane" />
+	<FalagardMapping WindowType="TaharezLook/Slider" TargetType="Falagard/Slider" LookNFeel="TaharezLook/Slider" />
+	<FalagardMapping WindowType="TaharezLook/SliderThumb" TargetType="Falagard/Thumb" LookNFeel="TaharezLook/SliderThumb" />
+	<FalagardMapping WindowType="TaharezLook/Spinner" TargetType="Falagard/Spinner" LookNFeel="TaharezLook/Spinner" />
+	<FalagardMapping WindowType="TaharezLook/StaticImage" TargetType="Falagard/StaticImage" LookNFeel="TaharezLook/StaticImage" />
+	<FalagardMapping WindowType="TaharezLook/StaticText" TargetType="Falagard/StaticText" LookNFeel="TaharezLook/StaticText" />
+	<FalagardMapping WindowType="TaharezLook/SystemButton" TargetType="Falagard/SystemButton" LookNFeel="TaharezLook/Button" />
+	<FalagardMapping WindowType="TaharezLook/TabButton" TargetType="Falagard/TabButton" LookNFeel="TaharezLook/TabButton" />
+	<FalagardMapping WindowType="TaharezLook/TabControl" TargetType="Falagard/TabControl" LookNFeel="TaharezLook/TabControl" />
+	<FalagardMapping WindowType="TaharezLook/TabPane" TargetType="Falagard/TabPane" LookNFeel="TaharezLook/TabPane" />
+	<FalagardMapping WindowType="TaharezLook/Titlebar" TargetType="Falagard/Titlebar" LookNFeel="TaharezLook/Titlebar" />
+	<FalagardMapping WindowType="TaharezLook/Tooltip" TargetType="Falagard/Tooltip" LookNFeel="TaharezLook/Tooltip" />
+	<FalagardMapping WindowType="TaharezLook/VerticalScrollbar" TargetType="Falagard/Scrollbar" LookNFeel="TaharezLook/VerticalScrollbar" />
+	<FalagardMapping WindowType="TaharezLook/VerticalScrollbarThumb" TargetType="Falagard/Thumb" LookNFeel="TaharezLook/VerticalScrollbarThumb" />
+	<FalagardMapping WindowType="TaharezLook/VUMeter" TargetType="Falagard/ProgressBar" LookNFeel="TaharezLook/VUMeter" />
+</GUIScheme>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoCegui.config
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoCegui.config	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/OceanDemoCegui.config	(revision 1049)
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?>
+<CEGUIConfig
+	Scheme="TaharezLook.scheme"
+	Layout="OceanDemoLayout.xml"
+	DefaultFont="Tahoma-10"
+/>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/gui/ogregui.layout
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/gui/ogregui.layout	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/gui/ogregui.layout	(revision 1049)
@@ -0,0 +1,79 @@
+<?xml version="1.0" ?>
+<GUILayout>
+<Window Type="DefaultGUISheet" Name="root">
+    <Window Type="DefaultGUISheet" Name="OgreGuiDemo">
+		<Property Name="Size" Value="w:0.25 h:1" />
+
+        <Window Type="TaharezLook/TabControl" Name="OgreGuiDemo/TabCtrl">
+            <Property Name="Position" Value="x:0.0 y:0.0" />
+            <Property Name="Size" Value="w:1 h:0.5" />
+
+            <Window Type="DefaultGUISheet" Name="OgreGuiDemo/TabCtrl/Page1">
+                <Property Name="Text" Value="File" />
+                <Window Type="TaharezLook/Button" Name="OgreGuiDemo/TabCtrl/Page1/NewButton">
+                    <Property Name="Position" Value="x:0.1 y:0.1" />
+                    <Property Name="Size" Value="w:0.8 h:0.07" />
+                    <Property Name="Text" Value="New" />
+                </Window>
+                <Window Type="TaharezLook/Button" Name="OgreGuiDemo/TabCtrl/Page1/LoadButton">
+                    <Property Name="Position" Value="x:0.1 y:0.2" />
+                    <Property Name="Size" Value="w:0.8 h:0.07" />
+                    <Property Name="Text" Value="Load Test Layout" />
+                </Window>
+                <Window Type="TaharezLook/Button" Name="OgreGuiDemo/TabCtrl/Page1/QuitButton">
+                    <Property Name="Position" Value="x:0.1 y:0.3" />
+                    <Property Name="Size" Value="w:0.8 h:0.07" />
+                    <Property Name="Text" Value="Quit" />
+                </Window>
+            </Window>
+            <Window Type="DefaultGUISheet" Name="OgreGuiDemo/TabCtrl/Page2">
+                <Property Name="Text" Value="Objects" />
+                <Window Type="TaharezLook/Combobox" Name="OgreGuiDemo/TabCtrl/Page2/ObjectTypeList">
+                    <Property Name="Position" Value="x:0.1 y:0.1" />
+                    <Property Name="Size" Value="w:0.8 h:0.5" />
+                    <Property Name="Text" Value="Select Type" />
+                    <Property Name="ClippedByParent" Value="false" />
+                    <Property Name="ReadOnly" Value="true" />
+                </Window>
+            </Window>
+        </Window>
+        <!--<Window Type="TaharezLook/FrameWindow" Name="OgreGuiDemo/WindowPropertiesWindow">
+            <Property Name="Size" Value="w:1 h:0.3" />
+            <Property Name="Position" Value="x:0 y:0.52" />
+            <Property Name="TitlebarEnabled" Value="false" />
+            <Property Name="CloseButtonEnabled" Value="false" />
+            <Property Name="Visible" Value="false" />
+            <Property Name="Text" Value="Editor Window" />
+            <Window Type="TaharezLook/StaticText" Name="OgreGuiDemo/WindowProperties/NameText">
+                <Property Name="Position" Value="x:0.05 y:0.2" />
+                <Property Name="Size" Value="w:0.9 h:0.4" />
+                <Property Name="Text" Value="Name:" />
+            </Window>
+
+            <Window Type="TaharezLook/Button" Name="OgreGuiDemo/WindowPropertiesWindow/OKButton">
+                <Property Name="Position" Value="x:0.15 y:0.8" />
+                <Property Name="Size" Value="w:0.3 h:0.1" />
+                <Property Name="Text" Value="OK" />
+            </Window>
+            <Window Type="TaharezLook/Button" Name="OgreGuiDemo/WindowPropertiesWindow/CancelButton">
+                <Property Name="Position" Value="x:0.55 y:0.8" />
+                <Property Name="Size" Value="w:0.3 h:0.1" />
+                <Property Name="Text" Value="Cancel" />
+            </Window>
+        </Window>-->
+	</Window>
+    <Window Type="DefaultGUISheet" Name="OgreGuiDemo2">
+		<Property Name="Size" Value="w:0.75 h:1" />
+		<Property Name="Position" Value="x:0.25 y:0" />
+        <Window Type="TaharezLook/FrameWindow" Name="OgreGuiDemo2/MainWindow">
+            <Property Name="Size" Value="w:1 h:1" />
+            <Property Name="Position" Value="x:0 y:0" />
+            <Property Name="DragMovingEnabled" Value="false" />
+            <Property Name="RollUpEnabled" Value="false" />
+            <Property Name="CloseButtonEnabled" Value="false" />
+            <Property Name="Text" Value="Editor Window" />
+        </Window>
+    </Window>
+</Window>
+
+</GUILayout>
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-CubeMapping.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-CubeMapping.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-CubeMapping.overlay	(revision 1049)
@@ -0,0 +1,139 @@
+Example/CubeMappingOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/CubeMappingPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 250
+		height 130
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+		element TextArea(Example/CubeMapping/Displacement)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [1/2] Displacement:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/CubeMapping/Density)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [3/4] Noise density:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/CubeMapping/TimeDensity)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [5/6] Time density:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+
+		element TextArea(Example/CubeMapping/Noise)
+		{
+			metrics_mode pixels
+			left 5
+			top 50
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [N] Noise: _not_set_
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/CubeMapping/Material)
+		{
+			metrics_mode pixels
+			left 5
+			top 65
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [M] Material: *UNIMPLEMENTED*
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/CubeMapping/Object)
+		{
+			metrics_mode pixels
+			left 5
+			top 80
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [O] Object:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/CubeMapping/CubeMap)
+		{
+			metrics_mode pixels
+			left 5
+			top 95
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [C] CubeMap:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		
+		element TextArea(Example/CubeMapping/Random)
+		{
+			metrics_mode pixels
+			left 5
+			top 110
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [SPACE] Go random!
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-DynTex.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-DynTex.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-DynTex.overlay	(revision 1049)
@@ -0,0 +1,194 @@
+Example/DynTexOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/DynTexPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 200
+		height 100
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+		element TextArea(Example/DynTex/Note)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Reaction parameters
+			colour_top 0.7 0.9 0.7
+			colour_bottom 0.5 0.7 0.5
+		}
+
+		element TextArea(Example/DynTex/Param_K)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [1/2]K:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DynTex/Param_F)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [3/4]F:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DynTex/Param_A0)
+		{
+			metrics_mode pixels
+			left 5
+			top 50
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [5/6]Diffusion 1:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DynTex/Param_A1)
+		{
+			metrics_mode pixels
+			left 5
+			top 65
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [7/8]Diffusion 2:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DynTex/Zero)
+		{
+			metrics_mode pixels
+			left 5
+			top 80
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [0]Reset initial conditions
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+
+	}
+}
+Example/VolTexOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Example/VolTexPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 200
+		height 70
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+		element TextArea(Example/VolTex/Note)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Julia parameters
+			colour_top 0.7 0.9 0.7
+			colour_bottom 0.5 0.7 0.5
+		}
+
+		element TextArea(Example/VolTex/Param_real)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [1/2]real:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/VolTex/Param_imag)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [3/4]imag:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/VolTex/Param_theta)
+		{
+			metrics_mode pixels
+			left 5
+			top 50
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [5/6]theta:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/DP3.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/DP3.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/DP3.overlay	(revision 1049)
@@ -0,0 +1,105 @@
+Example/DP3Overlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/DP3Panel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 500
+		height 70
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+		element TextArea(Example/DP3/Light)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 180
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [1,2,3] toggle lights
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DP3/Object)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 180
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [O] change objects
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/DP3/ObjectInfo)
+		{
+			metrics_mode pixels
+			left 155
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Current:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/DP3/Materials)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [M] Change material
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/DP3/MaterialInfo)
+		{
+			metrics_mode pixels
+			left 155
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Current:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/DP3/Info)
+		{
+			metrics_mode pixels
+			left 5
+			top 50
+			width 250
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Help.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Help.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Help.overlay	(revision 1049)
@@ -0,0 +1,14 @@
+InfoMessage
+{
+	zorder 100
+	// Stats block
+	container Panel(InfoPanel)
+	{
+		top 0
+		left 0
+		width 1
+		height 1
+		
+		material HelpScreen	
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Shadows.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Shadows.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Shadows.overlay	(revision 1049)
@@ -0,0 +1,92 @@
+Example/ShadowsOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/ShadowsPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 500
+		height 55
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+
+		element TextArea(Example/Shadows/ShadowTechnique)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 180
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [O] Shadow Technique
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/Shadows/ShadowTechniqueInfo)
+		{
+			metrics_mode pixels
+			left 155
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Current:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Shadows/Materials)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [M] Athene Material
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/Shadows/MaterialInfo)
+		{
+			metrics_mode pixels
+			left 155
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Current:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/Shadows/Info)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 250
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-Water.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-Water.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Example-Water.overlay	(revision 1049)
@@ -0,0 +1,168 @@
+Example/WaterOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/WaterPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 400
+		height 87
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+		    
+		element TextArea(Example/Water/Normals)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [N]Normals:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Rain)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [SPACE]Rain
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/SkyBox)
+		{
+			metrics_mode pixels
+			left 5
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [B]SkyBox: 
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Depth)
+		{
+			metrics_mode pixels
+			left 5
+			top 50
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [U/J]Head depth:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Material)
+		{
+			metrics_mode pixels
+			left 5
+			top 65
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [M]Material:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Note)
+		{
+			metrics_mode pixels
+			left 200
+			top 5
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Careful with these values!
+			colour_top 0.7 0.9 0.7
+			colour_bottom 0.5 0.7 0.5
+		}
+
+		element TextArea(Example/Water/Param_C)
+		{
+			metrics_mode pixels
+			left 200
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [1/2]Ripple speed:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Param_D)
+		{
+			metrics_mode pixels
+			left 200
+			top 35
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [3/4]Distance:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Param_U)
+		{
+			metrics_mode pixels
+			left 200
+			top 50
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [5/6]Viscosity:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+		element TextArea(Example/Water/Param_T)
+		{
+			metrics_mode pixels
+			left 200
+			top 65
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption [7/8]Time period:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+
+
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Compositor.overlay
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Compositor.overlay	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/overlays/Compositor.overlay	(revision 1049)
@@ -0,0 +1,66 @@
+Example/CompositorOverlay
+{
+	zorder 500
+	// Stats block
+	container BorderPanel(Core/CompositorPanel)
+	{
+		metrics_mode pixels
+		vert_align top
+		left 5 
+		top 5
+		width 500
+		height 55
+		material Core/StatsBlockCenter
+        	border_size 1 1 1 1
+        	border_material Core/StatsBlockBorder
+        	border_topleft_uv     0.0000 1.0000 0.0039 0.9961
+	    	border_top_uv         0.0039 1.0000 0.9961 0.9961
+	    	border_topright_uv    0.9961 1.0000 1.0000 0.9961
+	    	border_left_uv        0.0000 0.9961 0.0039 0.0039
+	    	border_right_uv       0.9961 0.9961 1.0000 0.0039
+	    	border_bottomleft_uv  0.0000 0.0039 0.0039 0.0000
+        	border_bottom_uv      0.0039 0.0039 0.9961 0.0000
+	    	border_bottomright_uv 0.9961 0.0039 1.0000 0.0000
+
+
+		element TextArea(Example/Compositor/Desc)
+		{
+			metrics_mode pixels
+			left 5
+			top 5
+			width 180
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Use keys 1-8 to toggle each compositor
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/Compositor/ActiveLabel)
+		{
+			metrics_mode pixels
+			left 5
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Active Compositors:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+		element TextArea(Example/Compositor/ActiveText)
+		{
+			metrics_mode pixels
+			left 155
+			top 20
+			width 90
+			height 30
+			font_name TrebuchetMSBold
+			char_height 16
+			caption Current:
+			colour_top 0.5 0.7 0.5
+			colour_bottom 0.3 0.5 0.3
+		}
+	}
+}
Index: GTP/trunk/App/Games/CarDriving_BME/Media/fonts/sample.fontdef
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Media/fonts/sample.fontdef	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Media/fonts/sample.fontdef	(revision 1049)
@@ -0,0 +1,121 @@
+IronMaiden
+{
+	// Blame cearny for this one!
+	type 		truetype
+	source 		maiden.ttf
+	size 		48
+	resolution 	96
+}
+
+StarWars
+{
+	// Now this one I agree with ;)
+	// A Star Wars font :)
+	type 		truetype
+	source 		solo5.ttf
+	size 		16
+	resolution 	96
+}
+
+Ogre
+{
+	type	image
+	source 	font_matisse_itc.png
+
+glyph	!	0.0898438	0.125	0.0976563	0.1875
+glyph	 	0.152344	0.125	0.160156	0.1875
+glyph	#	0.205078	0.125	0.232422	0.1875
+glyph	$	0.273438	0.125	0.289063	0.1875
+glyph	%	0.330078	0.125	0.357422	0.1875
+glyph	&	0.396484	0.125	0.416016	0.1875
+glyph	'	0.464844	0.125	0.472656	0.1875
+glyph	(	0.523438	0.125	0.539063	0.1875
+glyph	)	0.585938	0.125	0.601563	0.1875
+glyph	*	0.650391	0.125	0.662109	0.1875
+glyph	+	0.705078	0.125	0.732422	0.1875
+glyph	,	0.777344	0.125	0.785156	0.1875
+glyph	-	0.835938	0.125	0.851563	0.1875
+glyph	.	0.902344	0.125	0.910156	0.1875
+glyph	/	0.957031	0.125	0.980469	0.1875
+glyph	0	0.0195313	0.1875	0.0429688	0.25
+glyph	1	0.0859375	0.1875	0.101563	0.25
+glyph	2	0.146484	0.1875	0.166016	0.25
+glyph	3	0.210938	0.1875	0.226563	0.25
+glyph	4	0.271484	0.1875	0.291016	0.25
+glyph	5	0.333984	0.1875	0.353516	0.25
+glyph	6	0.396484	0.1875	0.416016	0.25
+glyph	7	0.458984	0.1875	0.478516	0.25
+glyph	8	0.521484	0.1875	0.541016	0.25
+glyph	9	0.583984	0.1875	0.603516	0.25
+glyph	:	0.652344	0.1875	0.660156	0.25
+glyph	;	0.714844	0.1875	0.722656	0.25
+glyph	<	0.771484	0.1875	0.791016	0.25
+glyph	=	0.832031	0.1875	0.855469	0.25
+glyph	>	0.896484	0.1875	0.916016	0.25
+glyph	?	0.960938	0.1875	0.976563	0.25
+glyph	@	0.0195313	0.25	0.0429688	0.3125
+glyph	A	0.0839844	0.25	0.103516	0.3125
+glyph	B	0.146484	0.25	0.166016	0.3125
+glyph	C	0.210938	0.25	0.226563	0.3125
+glyph	D	0.271484	0.25	0.291016	0.3125
+glyph	E	0.335938	0.25	0.351563	0.3125
+glyph	F	0.396484	0.25	0.416016	0.3125
+glyph	G	0.458984	0.25	0.478516	0.3125
+glyph	H	0.521484	0.25	0.541016	0.3125
+glyph	I	0.589844	0.25	0.597656	0.3125
+glyph	J	0.646484	0.25	0.666016	0.3125
+glyph	K	0.705078	0.25	0.732422	0.3125
+glyph	L	0.771484	0.25	0.791016	0.3125
+glyph	M	0.824219	0.25	0.863281	0.3125
+glyph	N	0.892578	0.25	0.919922	0.3125
+glyph	O	0.958984	0.25	0.978516	0.3125
+glyph	P	0.0195313	0.3125	0.0429688	0.375
+glyph	Q	0.0820313	0.3125	0.105469	0.375
+glyph	R	0.144531	0.3125	0.167969	0.375
+glyph	S	0.210938	0.3125	0.226563	0.375
+glyph	T	0.269531	0.3125	0.292969	0.375
+glyph	U	0.333984	0.3125	0.353516	0.375
+glyph	V	0.396484	0.3125	0.416016	0.375
+glyph	W	0.453125	0.3125	0.484375	0.375
+glyph	X	0.517578	0.3125	0.544922	0.375
+glyph	Y	0.576172	0.3125	0.611328	0.375
+glyph	Z	0.646484	0.3125	0.666016	0.375
+glyph	[	0.708984	0.3125	0.728516	0.375
+glyph	\	0.767578	0.3125	0.794922	0.375
+glyph	]	0.833984	0.3125	0.853516	0.375
+glyph	^	0.896484	0.3125	0.916016	0.375
+glyph	_	0.957031	0.3125	0.980469	0.375
+glyph	`	0.0195313	0.375	0.0429688	0.4375
+glyph	a	0.0839844	0.375	0.103516	0.4375
+glyph	b	0.146484	0.375	0.166016	0.4375
+glyph	c	0.207031	0.375	0.230469	0.4375
+glyph	d	0.273438	0.375	0.289063	0.4375
+glyph	e	0.333984	0.375	0.353516	0.4375
+glyph	f	0.396484	0.375	0.416016	0.4375
+glyph	g	0.458984	0.375	0.478516	0.4375
+glyph	h	0.521484	0.375	0.541016	0.4375
+glyph	i	0.587891	0.375	0.599609	0.4375
+glyph	j	0.646484	0.375	0.666016	0.4375
+glyph	k	0.705078	0.375	0.732422	0.4375
+glyph	l	0.771484	0.375	0.791016	0.4375
+glyph	m	0.816406	0.375	0.871094	0.4375
+glyph	n	0.888672	0.375	0.923828	0.4375
+glyph	o	0.958984	0.375	0.978516	0.4375
+glyph	p	0.0195313	0.4375	0.0429688	0.5
+glyph	q	0.0839844	0.4375	0.103516	0.5
+glyph	r	0.146484	0.4375	0.166016	0.5
+glyph	s	0.208984	0.4375	0.228516	0.5
+glyph	t	0.271484	0.4375	0.291016	0.5
+glyph	u	0.332031	0.4375	0.355469	0.5
+glyph	v	0.386719	0.4375	0.425781	0.5
+glyph	w	0.445313	0.4375	0.492188	0.5
+glyph	x	0.521484	0.4375	0.541016	0.5
+glyph	y	0.583984	0.4375	0.603516	0.5
+glyph	z	0.646484	0.4375	0.666016	0.5
+glyph	{	0.710938	0.4375	0.726563	0.5
+glyph	|	0.773438	0.4375	0.789063	0.5
+glyph	}	0.835938	0.4375	0.851563	0.5
+glyph	~	0.884766	0.4375	0.927734	0.5
+
+}
+
Index: GTP/trunk/App/Games/CarDriving_BME/Plugins.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Plugins.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Plugins.cfg	(revision 1049)
@@ -0,0 +1,13 @@
+# Defines plugins to load
+
+# Define plugin folder
+PluginFolder=.
+
+# Define plugins
+Plugin=RenderSystem_Direct3D9
+Plugin=Plugin_ParticleFX
+Plugin=Plugin_BSPSceneManager
+Plugin=Plugin_OctreeSceneManager
+Plugin=Plugin_CgProgramManager
+
+
Index: GTP/trunk/App/Games/CarDriving_BME/usage.txt
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/usage.txt	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/usage.txt	(revision 1049)
@@ -0,0 +1,31 @@
+The user can control a car in a simple scene.
+
+The car controls are the following:
+	
+	up arrow :   accelerate car
+	down arrow:  break
+	left arrow:  steer left
+	right arrow: steer right
+	
+	r:	     toggles between forward and reverse acceleration	
+	f:	     flip car (can be useful if car is upside down, or stuck into sg.)
+	g:	     positions the car to its start position (can be useful if the car flies out of 									the scene)
+	
+The user can also navigate in the scene in free view, allthough by default the car is followed by some fixed cameras.
+
+	v:	    toggles between free and fixed view
+
+the camera controls are:
+	
+	w:	    moves camera forward
+	s:	    moves camera backward
+	a:	    strafe camera left
+	d:	    strafe camera right
+	
+	the camera rotation is controlled by the MOUSE
+
+
+You can exit the program any time by pressing the ESC or F10.
+
+F1 shows/hides a help screen about the game controlls.
+	
Index: GTP/trunk/App/Games/CarDriving_BME/world.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/world.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/world.cfg	(revision 1049)
@@ -0,0 +1,6 @@
+HeightMap=2049x2049_map.png
+Scale.x=2.0
+Scale.y=0.6
+Scale.z=2.0
+WorldTexture=terrain_texture.jpg
+DetailTexture=terrain_detail.jpg
Index: GTP/trunk/App/Games/CarDriving_BME/game.txt
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/game.txt	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/game.txt	(revision 1049)
@@ -0,0 +1,7 @@
+This demo game shows ray tracing like effects.
+A reflective car can be driven in a simple scene. The scene containes reflective and refractive objects. For these effects cubemaps were used. The accuracy and computation speed of reflections, and refractions are improved with distance impostors. The car wheels cast caustic spots to the ground.
+These caustics were also computed with the help of distance impostor cubemaps. With our method these caustic spots can be computed real-time also for animated caustic casters and the result is correct and believable.
+	Just drive around the scene and watch the caustic spots cast by the wheels. To have more fun with caustics we added two bottles, whics can be hustled with our little car. They have different colors and cast beautiful caustics on the ground. These bottles also show nice refractions too.
+	The car also has a canvas roof which has a great amount of diffuse reflection. Nice diffuse colors can be seen if we move close to something with bright colors. The track has colorful cordons to show this effect. Above the cordons there are bright colored textile tents to encrease the variety of smooth diffuse colors. Just drive pass these cordons or rotate the car near them to see the change of diffuse light. This effect convolves a cubemap to compute diffuse light, distance impostors are also used to make computation more accurate.
+	If we got fed up with driving around, we can hit the explosives placed around. The explosion uses a billboard technique to render the fire, but eliminates clipping and popping effects with the
+spherical billboard method. The scene is distorted by the great heat of the explosion, acchieved with a compositing technique.
Index: GTP/trunk/App/Games/CarDriving_BME/ogre.cfg
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/ogre.cfg	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/ogre.cfg	(revision 1049)
@@ -0,0 +1,10 @@
+Render System=Direct3D9 Rendering Subsystem
+
+[Direct3D9 Rendering Subsystem]
+Allow NVPerfHUD=No
+Anti aliasing=None
+Floating-point mode=Fastest
+Full Screen=Yes
+Rendering Device=NVIDIA GeForce 7800 GT
+VSync=No
+Video Mode=800 x 600 @ 32-bit colour
Index: GTP/trunk/App/Games/CarDriving_BME/contact.txt
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/contact.txt	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/contact.txt	(revision 1049)
@@ -0,0 +1,4 @@
+Tamás  Umenhoffer 	umitomi@freemail.hu
+László Szirmay-Kalos 	szirmay@seeger.iit.bme.hu
+Balázs Tóth		tbalazs@sch.bme.hu
+László Szécsi		szecsi@iit.bme.hu
Index: GTP/trunk/App/Games/CarDriving_BME/readme.txt
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/readme.txt	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/readme.txt	(revision 1049)
@@ -0,0 +1,14 @@
+Raytrace Effects Car Driving Game
+	for 
+  Eurographics 2006 - Graphics meets Games - Competition
+		by
+			Computer Grahpics Research Group, BME (BUTE), Hungary
+
+This is a small demo program showing raytrace-like effects such as reflections, refractions, caustics
+ and diffuse reflections. The program uses the OGRE 3D graphics engine and the PhysX physics engine.
+
+The default configuration of the program is 640x480-32bit, fullscreen. This can be changed by editing the configuration file: ogre.cfg, or runnig the program with the option "-configure". With this option a configure dialog will open before game start. Resolution can also be changed by running the program with the following command line switch:
+ rx x-resolution ry y-resolution  E.g.: run.exe rx 1024 ry 768
+
+The application uses DirectX 9, and requires a Shader Model 3 compatibe raphics card.
+The Game was tested with a GeForce 6800 GT and GeForce 7800 GT, under Windows XP, Sevice Pack 2 (with AMD processors).
Index: GTP/trunk/App/Games/CarDriving_BME/Ogre.log
===================================================================
--- GTP/trunk/App/Games/CarDriving_BME/Ogre.log	(revision 1049)
+++ GTP/trunk/App/Games/CarDriving_BME/Ogre.log	(revision 1049)
@@ -0,0 +1,93 @@
+14:40:01: Creating resource group General
+14:40:01: Creating resource group Internal
+14:40:01: Creating resource group Autodetect
+14:40:01: Registering ResourceManager for type Material
+14:40:01: Registering ResourceManager for type Mesh
+14:40:01: Registering ResourceManager for type Skeleton
+14:40:01: MovableObjectFactory for type 'ParticleSystem' registered.
+14:40:01: Loading library OgrePlatform.dll
+14:40:01: OverlayElementFactory for type Panel registered.
+14:40:01: OverlayElementFactory for type BorderPanel registered.
+14:40:01: OverlayElementFactory for type TextArea registered.
+14:40:01: Registering ResourceManager for type Font
+14:40:01: ArchiveFactory for archive type FileSystem registered.
+14:40:01: ArchiveFactory for archive type Zip registered.
+14:40:01: DevIL version: Developer's Image Library (DevIL) 1.6.7 Oct 28 2005
+14:40:01: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw 
+14:40:01: Registering ResourceManager for type HighLevelGpuProgram
+14:40:01: Registering ResourceManager for type Compositor
+14:40:01: MovableObjectFactory for type 'Entity' registered.
+14:40:01: MovableObjectFactory for type 'Light' registered.
+14:40:01: MovableObjectFactory for type 'BillboardSet' registered.
+14:40:01: MovableObjectFactory for type 'ManualObject' registered.
+14:40:01: MovableObjectFactory for type 'BillboardChain' registered.
+14:40:01: MovableObjectFactory for type 'RibbonTrail' registered.
+14:40:01: Loading library .\RenderSystem_Direct3D9
+14:40:01: D3D9 : Direct3D9 Rendering Subsystem created.
+14:40:01: D3D9: Driver Detection Starts
+14:40:01: D3D9: Driver Detection Ends
+14:40:01: Loading library .\Plugin_ParticleFX
+14:40:01: Particle Emitter Type 'Point' registered
+14:40:01: Particle Emitter Type 'Box' registered
+14:40:01: Particle Emitter Type 'Ellipsoid' registered
+14:40:01: Particle Emitter Type 'Cylinder' registered
+14:40:01: Particle Emitter Type 'Ring' registered
+14:40:01: Particle Emitter Type 'HollowEllipsoid' registered
+14:40:01: Particle Affector Type 'LinearForce' registered
+14:40:01: Particle Affector Type 'ColourFader' registered
+14:40:01: Particle Affector Type 'ColourFader2' registered
+14:40:01: Particle Affector Type 'ColourImage' registered
+14:40:01: Particle Affector Type 'ColourInterpolator' registered
+14:40:01: Particle Affector Type 'Scaler' registered
+14:40:01: Particle Affector Type 'Rotator' registered
+14:40:01: Particle Affector Type 'DirectionRandomiser' registered
+14:40:01: Particle Affector Type 'DeflectorPlane' registered
+14:40:01: Loading library .\Plugin_BSPSceneManager
+14:40:01: Registering ResourceManager for type BspLevel
+14:40:01: Loading library .\Plugin_OctreeSceneManager
+14:40:01: Loading library .\Plugin_CgProgramManager
+14:40:01: *-*-* OGRE Initialising
+14:40:01: *-*-* Version 1.2.0 (Dagon)
+14:40:01: Creating resource group Bootstrap
+14:40:01: Added resource location './Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
+14:40:01: Added resource location './Media' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/fonts' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/materials/programs' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/materials/scripts' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/materials/textures' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/models' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/overlays' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/particle' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/gui' of type 'FileSystem' to resource group 'General'
+14:40:01: Added resource location './Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
+14:40:01: Added resource location './Media/packs/smokealphaclip.zip' of type 'Zip' to resource group 'General'
+14:40:01: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
+14:40:01: D3D9 : RenderSystem Option: Anti aliasing = None
+14:40:01: D3D9 : RenderSystem Option: Floating-point mode = Fastest
+14:40:01: D3D9 : RenderSystem Option: Full Screen = Yes
+14:40:01: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 7800 GT
+14:40:01: D3D9 : RenderSystem Option: VSync = No
+14:40:01: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
+14:40:01: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
+14:40:01: D3D9 : RenderSystem Option: Anti aliasing = None
+14:40:01: D3D9 : RenderSystem Option: Floating-point mode = Fastest
+14:40:01: D3D9 : RenderSystem Option: Full Screen = Yes
+14:40:01: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 7800 GT
+14:40:01: D3D9 : RenderSystem Option: VSync = No
+14:40:01: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
+14:40:02: Unregistering ResourceManager for type BspLevel
+14:40:02: *-*-* OGRE Shutdown
+14:40:02: Unregistering ResourceManager for type Compositor
+14:40:02: Unregistering ResourceManager for type Font
+14:40:02: Unregistering ResourceManager for type Skeleton
+14:40:02: Unregistering ResourceManager for type Mesh
+14:40:02: Unregistering ResourceManager for type HighLevelGpuProgram
+14:40:02: Unloading library .\Plugin_CgProgramManager
+14:40:02: Unloading library .\Plugin_OctreeSceneManager
+14:40:02: Unloading library .\Plugin_BSPSceneManager
+14:40:02: Unloading library .\Plugin_ParticleFX
+14:40:02: D3D9 : Shutting down cleanly.
+14:40:02: D3D9 : Direct3D9 Rendering Subsystem destroyed.
+14:40:02: Unloading library .\RenderSystem_Direct3D9
+14:40:02: Unregistering ResourceManager for type Material
+14:40:02: Unloading library OgrePlatform.dll
