
	this.loader.addAnimation([
    {
         "start": 0, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text1.png"]
		,"scale":[{"x":1.5,"y":1.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 2*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text2.png"]
		,"scale":[{"x":1.5,"y":1.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 12*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text3.png"]
		,"scale":[{"x":2.5,"y":2.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"r":0.0,"g":0.0,"b":0.0,"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 14*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text4.png"]
		,"scale":[{"x":2.5,"y":2.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"r":0.0,"g":0.0,"b":0.0,"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 14*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text4.png"]
		,"scale":[{"x":2.5,"y":2.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"r":0.0,"g":0.0,"b":0.0,"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 28*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text5.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"position":[
		{"x":640
		,"y":540
		}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);


	this.loader.addAnimation([
    {
         "start": 30*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text6.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"position":[
		{"x":640
		,"y":540
		}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);


	this.loader.addAnimation([
    {
         "start": 32*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text7.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"position":[
		{"x":640
		,"y":540
		}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);


	this.loader.addAnimation([
    {
         "start": 34*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text8.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"position":[
		{"x":640
		,"y":540
		}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]			
    }
]);

	this.loader.addAnimation([
    {
         "start": 36*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text10.png"]
		,"scale":[{"x":2.5,"y":2.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 38*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text9.png"]
		,"scale":[{"x":2.5,"y":2.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 48*pattern, "duration":2*pattern
        ,"layer": 49951, "image": ["data/text11.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]

		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 50*pattern, "duration":4*pattern
        ,"layer": 49951, "image": ["data/text12.png"]
		,"scale":[{"x":3.5,"y":3.5}
		,{"duration":2*pattern,"x":1.3,"y":1.3}]

		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 52*pattern, "duration":4*pattern
        ,"layer": 49951, "image": ["data/text15.png"]
		,"scale":[{"x":4.5,"y":4.5}
		,{"duration":2*pattern,"x":2.3,"y":2.3}]

		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);

	this.loader.addAnimation([
    {
         "start": 54*pattern, "duration":4*pattern
        ,"layer": 49951, "image": ["data/text14.png"]
		,"scale":[{"x":4.5,"y":4.5}
		,{"duration":2*pattern,"x":2.3,"y":2.3}]
		,"color":[{"a":0.0}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":0.5*pattern,"a":255}
		,{"duration":1.0*pattern,"a":0}]
    }
]);


	this.loader.addAnimation([
	{
		 "start": 4*pattern, "duration": 8*pattern, "camera": "Cam01"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":0.0, "y":"{return getSceneTimeFromStart();}", "z":"{return 2*Math.sin(getSceneTimeFromStart());}"}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);

		this.loader.addAnimation([
	{
		 "start": 16*pattern, "duration": 4*pattern, "camera": "Cam01"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":15.0, "y":"{return getSceneTimeFromStart();}", "z":"{return 2*Math.sin(getSceneTimeFromStart());}"}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);


	
		this.loader.addAnimation([
	{
		 "start": 20*pattern, "duration": 4*pattern, "camera": "Cam01"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":180.0, "y":"{return getSceneTimeFromStart();}", "z":"{return 2*Math.sin(getSceneTimeFromStart());}"}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);
	
	
				
					
				this.loader.addAnimation([
					{
					"start": 4*pattern, "duration": 8*pattern, "object":"data/lightning_ball.obj"
					,"camera": "Cam01"
					,"layer": 22001
					,"position":[
					{"x":32
					,"y":2
					,"z":-2.75
					}]
					,"angle": [{"degreesX":"{return getSceneTimeFromStart()*25.5}","degreesY":"{return getSceneTimeFromStart()*25}","degreesZ":"{return getSceneTimeFromStart()*25.5}"}]
					
			        ,"shader":{
					"name":["data/shader/heightmap.fs","data/shader/heightmap.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*1.0}"]}
					,{"name":"diffuseScrollSpeed","value":[.5]}
					,{"name":"displaceAmount","value":[71]}
					]
					}

					}]);
					
				this.loader.addAnimation([
					{
					"start": 4*pattern, "duration": 8*pattern, "object":"data/ugly_castle2.obj"
					,"camera": "Cam01"
					,"layer": 22001
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);


					
		this.loader.addAnimation([
			{
		 "start": 0*pattern, "duration": 4*pattern, "camera": "Cam02"
		,"layer": 22001
		,"target":[
		{"x":0
		,"y":0
		,"z":0
		}]
		,"up":[
		{"x":0
		,"y":1
		,"z":0
		}]
				,"position":[
		{"x":0
		,"y":0
		,"z":15
		}]
	}]);
	
	
		this.loader.addAnimation([
			{
		 "start": 12*pattern, "duration": 4*pattern, "camera": "Cam02"
		,"layer": 22001
		,"target":[
		{"x":0
		,"y":0
		,"z":0
		}]
		,"up":[
		{"x":0
		,"y":1
		,"z":0
		}]
				,"position":[
		{"x":0
		,"y":0
		,"z":15
		}]
	}]);
	
			this.loader.addAnimation([
			{
		 "start": 24*pattern, "duration": 8*pattern, "camera": "Cam02"
		,"layer": 22001
		,"target":[
		{"x":0
		,"y":0
		,"z":0
		}]
		,"up":[
		{"x":0
		,"y":1
		,"z":0
		}]
				,"position":[
		{"x":0
		,"y":0
		,"z":15
		}]
	}]);
	/*
	this.loader.addAnimation([
    {
         "start": 8*pattern, "duration":4*pattern
        ,"layer": 25000, "image": {"name":"data/interceptor.ogv", "video":{"speed":0.2} }
		,"scale":[{"x":1.5,"y":1.5}]
		,"color":[{"r":255,"g":255,"b":255,"a":25}]

		
    }
]);
	*/

				this.loader.addAnimation([
					{
					"start": 12*pattern, "duration": 4*pattern, "object":"data/lightning_ball.obj"
					,"camera": "Cam02"
					,"layer": 22001
					,"position":[
					{"x":0
					,"y":0
					,"z":0
					}]
					,"angle": [{"degreesX":"{return getSceneTimeFromStart()*25.5}","degreesY":"{return getSceneTimeFromStart()*25}","degreesZ":"{return getSceneTimeFromStart()*25.5}"}]
					
			        ,"shader":{
					"name":["data/shader/heightmap.fs","data/shader/heightmap.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*1.0}"]}
					,{"name":"diffuseScrollSpeed","value":[.5]}
					,{"name":"displaceAmount","value":[7]}
					]
					}

					}]);
	
				this.loader.addAnimation([
					{
					"start": 16*pattern, "duration": 8*pattern, "object":"data/ugly_castle2.obj"
					,"camera": "Cam01"
					,"layer": 22001
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);
					
					
				this.loader.addAnimation([
					{
					"start": 24*pattern, "duration": 4*pattern, "image": ["data/noise.png"]
					,"layer": 22000
					

					,"scale": [{"x":0.1,"y":-2,"z":-11}]
						     ,"shader":{
						"name":"data/shader/tunnel.fs",
						"variable":[
						{"name":"time","value":["{return 10+getSceneTimeFromStart();}"]}
						]
					}
					}]);

									this.loader.addAnimation([
					{
					"start": 24*pattern, "duration": 4*pattern, "object":"data/SWORD.obj"
					,"camera": "Cam02"
					,"layer": 22005
				,"angle": [{"degreesX":90,"degreesY":0,"degreesZ":0}
				,{"duration":4*pattern,"degreesZ":360}]
				,"position":[
				{"x":0
				,"y":-7
				,"z":0
		}
		,{"duration":4*pattern,"y":5}]
				,"scale": [
					{"x":.75
					,"y":.75
					,"z":.75
		}]
					}]);
					
				this.loader.addAnimation([
					{
					"start": 36*pattern, "duration": 4*pattern, "image": ["data/firetexture2.png"]
					,"layer": 21001
					

					,"scale": [{"x":2,"y":1,"z":1}]
						     ,"shader":{
						"name":"data/shader/tunnel2.fs",
						"variable":[
						{"name":"time","value":["{return 10+getSceneTimeFromStart()*.1;}"]}
						]
					}
					}]);
					
for(i=0;i<60;i++)
{
	var randomY=Math.random()*1720;
	var randomZ=.05+Math.random();
	var yTarget=randomY-(500*randomZ);
	
	this.loader.addAnimation([
    {
         "start": 36*pattern, "duration":4*pattern
		 ,"perspective":"2d"
        ,"layer": 22001, "image": ["data/woman_silhouette.png"]
		,"color":[{"r":0.0,"g":0.0,"b":0.0}]
		,"scale":[{"x":0.4*randomZ,"y":-0.5*randomZ}]
				,"position":[
		{"x":Math.random()*1480
		,"y":randomY

		}
		,{"duration":4*pattern,"y":yTarget}]
    }])
}



				this.loader.addAnimation([
					{
					"start": 28*pattern, "duration": 8*pattern, "image": ["data/noise.png","data/noise.png"]
					,"layer": 21001
					
					,"position":[
					{"x":640
					,"y":540
					}]
					,"scale": [{"x":-5,"y":5,"z":1}]
						     ,"shader":{
						"name":"data/shader/fire.fs",
						"variable":[
						{"name":"time","value":["{return 10+getSceneTimeFromStart();}"]}
						]
					}
					}]);

				this.loader.addAnimation([
					{
					"start": 48*pattern, "duration": 8*pattern, "image": ["data/noise.png","data/noise.png"]
					,"layer": 21001
					
					,"position":[
					{"x":640
					,"y":540
					}]
					,"scale": [{"x":-5,"y":5,"z":1}]
						     ,"shader":{
						"name":"data/shader/fire.fs",
						"variable":[
						{"name":"time","value":["{return 10+getSceneTimeFromStart();}"]}
						]
					}
					}]);				
		this.loader.addAnimation([
	{
		 "start": 28*pattern, "duration": 8*pattern, "camera": "Cam01"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":0.0, "y":"{return getSceneTimeFromStart();}", "z":"{return 2*Math.sin(getSceneTimeFromStart());}"}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);


				this.loader.addAnimation([
					{
					"start": 28*pattern , "duration": 8*pattern, "object":"data/swordhill.obj"
					,"camera": "Cam01"
					,"layer": 22001
	
					,"angle": [{"degreesX":-90,"degreesY":0,"degreesZ":35}
					,{"duration":8*pattern,"degreesZ":360}]
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);
										this.loader.addAnimation([
					{
					"start": 40*pattern, "duration": 8*pattern, "object":"data/ugly_castle2.obj"
					,"camera": "Cam01"
					,"layer": 22001
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);



					
						this.loader.addAnimation([
	{
		 "start": 40*pattern, "duration": 8*pattern, "camera": "Cam01"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":"{return 0.15*Math.sin(getSceneTimeFromStart());}", "y":0.1, "z":0.0}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);
	
			this.loader.addAnimation([
	{
		 "start": 48*pattern, "duration": 16*pattern, "camera": "Cam02"
		,"layer": 22001
		,"target":[
		{"x":"{return Sync.getSyncValue('CameraTargetx');}"
		,"y":"{return Sync.getSyncValue('CameraTargety');}"
		,"z":"{return Sync.getSyncValue('CameraTargetz');}"
		}]
		,"up":[ {"x":0.0, "y":"{return getSceneTimeFromStart();}", "z":"{return 2*Math.sin(getSceneTimeFromStart());}"}
		]
				,"position":[
		{"x":"{return Sync.getSyncValue('Camerax');}"
		,"y":"{return Sync.getSyncValue('Cameray');}"
		,"z":"{return Sync.getSyncValue('Cameraz');}"
		}]
	}]);					
				this.loader.addAnimation([
					{
					"start": 48*pattern , "duration": 8*pattern, "object":"data/swordman1.obj"
					,"camera": "Cam02"
					,"layer": 22001
					,"position":[
					{"x":0
					,"y":0
					,"z":0
					}]
					,"angle": [{"degreesX":-90,"degreesY":0,"degreesZ":0}]
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);
									this.loader.addAnimation([
					{
					"start": 48*pattern , "duration": 8*pattern, "object":"data/swordman2.obj"
					,"camera": "Cam01"
					,"layer": 22001
						,"angle": [{"degreesX":-90,"degreesY":0,"degreesZ":0}]
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);
					

									this.loader.addAnimation([
					{
					"start": 56*pattern , "duration": 8*pattern, "object":"data/badskull.obj"
					,"camera": "Cam02"
					,"layer": 22001
					,"position":[
					{"x":3.5
					,"y":1.2
					,"z":8
					}
					,{"duration":2*pattern,"z":6}]
					,"angle": [{"degreesX":-90,"degreesY":0,"degreesZ":"{return getSceneTimeFromStart()*421}"}]
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);

									this.loader.addAnimation([
					{
					"start": 56*pattern , "duration": 8*pattern, "object":"data/sword.obj"
					,"camera": "Cam02"
					,"layer": 22001
					,"scale":[{"x":0.15,"y":0.15,"z":0.15}]
					,"position":[
					{"x":3.5
					,"y":-3.2
					,"z":8
					}
					,{"duration":2*pattern,"z":6}]
					,"angle": [{"degreesX":-90,"degreesY":0,"degreesZ":"{return getSceneTimeFromStart()*421}"}]
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);					
/*	
				this.loader.addAnimation([
					{
					"start": 24*pattern , "duration": 8*pattern, "object":"data/ugly_castle2.obj"
					,"camera": "Cam01"
					,"layer": 22001
			        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}					
					}]);
*/
					/*					
for(ii=0;ii<4;ii++)
{
	for(i=0;i<64;i++)
	{
		if(swordSyncPattern[i]==1)
		{
			this.loader.addAnimation([
				{
					"start": 24*pattern+i*tick+ii*pattern*2, "duration": 1*pattern, "object":"data/SWORD.obj"
					,"camera": "Cam02"
					,"layer": 22001
								        ,"shader":{
					"name":["data/shader/heightmap_camera_fsu.fs","data/shader/heightmap_camera_fsu.vs"]
					,"variable":[
					{"name":"time","value":["{return getSceneTimeFromStart()*.5}"]}
					,{"name":"diffuseScrollSpeed","value":[0]}
					,{"name":"displaceAmount","value":["{return Sync.getSyncValue('CastleDisplaceAmount');}"]}
					]
					}
					,"angle": [{"degreesX":70,"degreesY":Math.random()*50-25,"degreesZ":0}]
					,"position":[
					{"x":Math.random()*20.0-10
					,"y":2
					,"z":-20
					}
					,{"duration":pattern,"z":55}]
					,"scale": [
					{"x":.35
					,"y":.35
					,"z":.35
					}]
					}]);
		}
	}	
}
*/		
// this.fullScreenNoise(0,64*pattern,50000,.1);