InitialObjectDescriptor {
  objectDescriptorID 1
  ODProfileLevelIndication 0xFF
  sceneProfileLevelIndication 0xFE
  audioProfileLevelIndication 0xFF
  visualProfileLevelIndication 0xFF
  graphicsProfileLevelIndication 0xFE

  esdescr [
    ES_Descriptor {
      es_id 1
      decConfigDescr DecoderConfigDescriptor {
				streamType 3
				decSpecificInfo BIFSConfig {
				  isCommandStream true
				  pixelMetric true
				  pixelWidth 200
				  pixelHeight 200
				}
      }
    }
    ES_Descriptor {
      es_id 2
      decConfigDescr DecoderConfigDescriptor {
				streamType 1
      }
    }
  ]
}

OrderedGroup { 
 children [

  WorldInfo {
   title "Box test"
   info ["This shows a bitmap using" "a compositetexture3D" "the 3D texture is a spinning box with an image texture" "" "GPAC Regression Tests" "$Date: 2008-07-22 10:54:58 $ - $Revision: 1.3 $" "(C) 2002-2004 GPAC Team"]
  }
	Background2D{url 20}
	
  Shape {
  	appearance Appearance { 
  		material DEF MAT Material2D { emissiveColor 1 1 0 filled FALSE transparency 0}
	  	texture CompositeTexture3D {
	  		pixelWidth 128
	  		pixelHeight 128
	  		children [
	  			DEF BACK Background2D {backColor 0 1 0}
	  			DEF TR2 Transform {
	  				rotation 1 1 1 -0.65
	  				children [
	  					Shape {
	  						appearance Appearance {
	  							 material DEF MAT2 Material { emissiveColor 0 0 1 } 
	  							 texture ImageTexture {url 10}
	  						}
	  						geometry Box {size 50 50 50}
							}
							DEF TOUCH TouchSensor{}
						]
					}
				]
			}
    }
#    geometry Bitmap{}
    geometry Circle {radius 60}
   }

  DEF TS TimeSensor { cycleInterval 2.0 loop TRUE }
  DEF OI OrientationInterpolator  {
  	key [0 0.5 1]
  	keyValue [1 1 1 0, 1 1 1 3.14, 1 1 1 6.26]
 	}

 ]
}

ROUTE TS.fraction_changed TO OI.set_fraction
#ROUTE TS.fraction_changed TO MAT2.transparency
ROUTE OI.value_changed TO TR2.rotation
ROUTE TOUCH.isActive TO BACK.set_bind


AT 0 {
	UPDATE OD [
		ObjectDescriptor {
		  objectDescriptorID  10
		  esDescr [
		    ES_Descriptor {
		      ES_ID 10
		      muxInfo MuxInfo {
		       fileName "./../auxiliary_files/logo.png"
		      }
		    }
		  ]
		}
		ObjectDescriptor {
		  objectDescriptorID  20
		  esDescr [
		    ES_Descriptor {
		      ES_ID 20
		      muxInfo MuxInfo {
		       fileName "./../auxiliary_files/sky.jpg"
		      }
		    }
		  ]
		}
	]
}

#take care of bind delay
AT 100 {
#	REPLACE BACK.set_bind BY FALSE
}
