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

OrderedGroup {
 children [
  DEF B Background2D {
   backColor 1 1 0
  }
  WorldInfo {
   info [
    "This test shows how transparency applies to composite textures."
    "" 
    "GPAC Regression Tests" "$Date: 2009-05-20 17:11:40 $ - $Revision: 1.4 $" 
    "(C) 2002-2006 GPAC Team"
   ]
   title "CompositeTexture and Transparency"
  }
  Transform2D {
   translation -20 80
   rotationAngle 0.57
   children [
      Shape {
       appearance Appearance {
        material Material2D {
         emissiveColor 1 0 0
         filled TRUE
        }
       }
       geometry Rectangle { size 380 40 }
      }
   ]
  }
  Transform2D {
   translation -20 80
   children [
      Shape {
       appearance Appearance {
        material DEF M1 Material2D {
         emissiveColor 0 1 0
        }
        texture CompositeTexture2D {
         pixelWidth 128
         pixelHeight 128
         children [
          DEF S Shape {
           appearance Appearance {
            material Material2D {
             emissiveColor 0 0 0
             filled TRUE
             transparency 0.5
            }
           }
           geometry Circle { radius 50 }
          }
          DEF TS TouchSensor {}
         ]
        }
        textureTransform TextureTransform {
         scale 8 4
        }
       }
       #geometry Curve2D { type [2] point Coordinate2D { point [-300 0 -150 -500 150 500 300 0] } }
       geometry Rectangle { size 300 150 }
      }
    ]
  }
  Transform2D {
   translation 140 -100
   children [
    USE S
    Transform2D {
     translation 0 -50
     children [
      Shape {
       appearance DEF APP Appearance {
        material Material2D {
         emissiveColor 0 0 0
         filled TRUE
        }
       }
       geometry Text {
        string ["Composite Texture Pattern" "Black Circle Half-Transparent"]
        fontStyle DEF FS FontStyle {
         family ["SANS"]
         justify ["MIDDLE" "BEGIN"]
         size 20
        }
       }
      }
     ]
    }
   ]
  }
  DEF C Conditional {
   buffer {
    REPLACE B.backColor BY 1 0 0
   }
  }
  DEF RC Conditional {
   buffer {
    REPLACE B.backColor BY 1 1 0
   }
  }
 ]
}

ROUTE TS.isActive TO C.activate
ROUTE TS.isActive TO RC.reverseActivate

