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

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

OrderedGroup { 
 children [
  WorldInfo {
   title "ScalarAnimator test"
   info ["This shows ScalarAnimator using bezier spline interpolation" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:09 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
  }
  DEF BACK Background2D { backColor 1 1 1}
  DEF TR Transform2D {   
   scale 0.5 0.5
   children [
    Shape { 
     appearance Appearance { material DEF MAT Material2D { emissiveColor 1 0 0 filled TRUE } }
     geometry IndexedFaceSet2D {
      coord DEF COORD Coordinate2D { 
       point [-100 0, -50 100, 50 100, 100 0, 50 -100, -50 -100]
      } 
     }
    }
   ]
  }
  DEF TS TimeSensor {
  	cycleInterval 4.0
   loop TRUE
  }
  DEF V Valuator {
  	Factor2 0
  	Offset2 0.5
  }
  DEF SI ScalarAnimator {
#   key [0 0.25 0.5 0.75 1]

   keyValueType 2
   keyValue [0.5 0.0 1 0.5]
   keyType 2
   keySpline [0.4 0.5, 0.15 0.15]
  }
 ]
}

ROUTE TS.fraction_changed TO SI.set_fraction
DEF R1 ROUTE SI.value_changed TO V.inSFFloat
ROUTE V.outSFVec2f TO TR.scale
