InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 300
     pixelHeight 300
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  WorldInfo {
   info [
    "This test shows node replacement through BIFS commands" 
    "Initally, the scene has a white background, but at 2s the Background2D node is replaced by a new node defining a yellow background."
    "The same test could be done replacing the field backColor of the Background2D node, this would be a field replacement."
    ""
    "GPAC Regression Tests" "$Date: 2007-07-27 09:46:09 $ - $Revision: 1.3 $" 
    "(C) 2002-2006 GPAC Team"
   ]
   title "Node Replacement"
  }
  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]
      }
     }
    }
   ]
  }
 ]
}


AT 2000 {
 REPLACE BACK BY Background2D {
  backColor 0 1 1
 }
}

