~ubuntu-branches/ubuntu/raring/gpac/raring

« back to all changes in this revision

Viewing changes to regression_tests/bifs-2D-painting-colortransform-alpha.bt

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
InitialObjectDescriptor {
 
2
 objectDescriptorID 1
 
3
 audioProfileLevelIndication 1
 
4
 visualProfileLevelIndication 1
 
5
 sceneProfileLevelIndication 1
 
6
 graphicsProfileLevelIndication 1
 
7
 ODProfileLevelIndication 1
 
8
 esDescr [
 
9
  ES_Descriptor {
 
10
   ES_ID 2
 
11
   decConfigDescr DecoderConfigDescriptor {
 
12
    streamType 3
 
13
    decSpecificInfo BIFSConfig {
 
14
     isCommandStream true
 
15
     pixelMetric true
 
16
     pixelWidth 300
 
17
     pixelHeight 300
 
18
    }
 
19
   }
 
20
  }
 
21
 ]
 
22
}
 
23
 
 
24
OrderedGroup {
 
25
 children [
 
26
  Background2D {
 
27
   backColor 1 1 1
 
28
  }
 
29
  WorldInfo {
 
30
   info [
 
31
    "This test shows how to modify the color components on a graphical object using the ColorTransform node."
 
32
    "A group made of a circle and a rectangle is reused under a ColorTransform node which animates only the Red-Blue component from 0 to 1" 
 
33
    "Note: the transparency is specified for a set of objects but is applied individually, that is why the overlapping region of the circle and of the rectangle gets black faster than the rest of the group." 
 
34
    "" 
 
35
    "GPAC Regression Tests" 
 
36
    "(C) 2002-2006 GPAC Team"
 
37
   ]
 
38
   title "ColorTranform"
 
39
  }
 
40
  DEF TR Transform2D {
 
41
   children [
 
42
    Shape {
 
43
     appearance Appearance {
 
44
      material Material2D {
 
45
       emissiveColor 0 1 1
 
46
       filled TRUE
 
47
      }
 
48
     }
 
49
     geometry Rectangle {
 
50
      size 200 50
 
51
     }
 
52
    }
 
53
    Shape {
 
54
     appearance Appearance {
 
55
      material Material2D {
 
56
       emissiveColor 1 0 1
 
57
       filled TRUE
 
58
      }
 
59
     }
 
60
     geometry Circle {
 
61
      radius 50
 
62
     }
 
63
    }
 
64
   ]
 
65
  }
 
66
  DEF CT ColorTransform {
 
67
   mrr 0
 
68
   mgg 0
 
69
   mbb 0
 
70
   maa 0
 
71
   ta 1
 
72
   children [
 
73
    DEF MX TransformMatrix2D {
 
74
     mxx 0.5
 
75
     mxy 0.5
 
76
     myy 0.5
 
77
     ty -100
 
78
     children [
 
79
      USE TR
 
80
     ]
 
81
    }
 
82
   ]
 
83
  }
 
84
  DEF TS TimeSensor {
 
85
   cycleInterval 2
 
86
   loop TRUE
 
87
  }
 
88
  DEF CI PositionInterpolator2D {
 
89
   key [0 0.5 1]
 
90
   keyValue [0 0 100 100 0 0]
 
91
  }
 
92
  DEF SI ScalarInterpolator {
 
93
   key [0 0.5 1]
 
94
   keyValue [0 1 0]
 
95
  }
 
96
 ]
 
97
}
 
98
 
 
99
ROUTE TS.fraction_changed TO SI.set_fraction
 
100
ROUTE SI.value_changed TO CT.ta
 
101