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 [ Background2D { backColor 1 1 1 } WorldInfo { info [ "This test shows the usage of the CompositeTexture node." "It allows defining a texture made of vector graphics objects, and to use the texture like images or video. It enables using hardware acceleration for texture operations." "In mixed 3D/2D environment, it allows mapping 2D graphics on 3D objects." "Texture in general may be repeated without the complexity of duplicating and translating the objects." "Here, the texture is an animated circle on a red background. The resulting texture is used on a Bitmap node." "" "GPAC Regression Tests" "(C) 2002-2006 GPAC Team" ] title "CompositeTexture and Bitmap nodes" } Shape { appearance Appearance { material DEF M1 Material2D { emissiveColor 0 1 0 } texture CompositeTexture2D { pixelWidth 100 pixelHeight 100 background Background2D { backColor 1 0 0} children [ DEF S Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE # transparency 0.5 lineProps LineProperties { width 0 } } } geometry DEF C Circle { radius 20 } } ] } } geometry Bitmap {scale 2 2} } Transform2D { translation 200 0 children [ USE S ] } DEF TS TimeSensor { loop TRUE } DEF SI ScalarInterpolator { key [0 0.5 1] keyValue [25 10 25] } ] } ROUTE TS.fraction_changed TO SI.set_fraction ROUTE SI.value_changed TO C.radius