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

« back to all changes in this revision

Viewing changes to regression_tests/bifs-2D-texturing-radialgradient-spread.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 400
 
17
     pixelHeight 400
 
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 the different methods for spreading radial gradients when the size of the object to be filled is large" 
 
32
    "The focal point of the gradient is also animated to change the gradient aspect over time." 
 
33
    "" 
 
34
    "GPAC Regression Tests" 
 
35
    "(C) 2002-2006 GPAC Team"
 
36
   ]
 
37
   title "Radial Gradient Spread Methods"
 
38
  }
 
39
  Transform2D {
 
40
   translation 0 -150
 
41
   children [
 
42
    Shape {
 
43
     appearance Appearance {
 
44
      material Material2D {
 
45
       emissiveColor 0 0 0
 
46
       filled TRUE
 
47
      }
 
48
     }
 
49
     geometry Text {
 
50
      string ["Move over and click" "to change the spread method"]
 
51
      fontStyle DEF FS FontStyle {
 
52
       justify ["MIDDLE" "MIDDLE"]
 
53
       size 20
 
54
      }
 
55
     }
 
56
    }
 
57
   ]
 
58
  }
 
59
  Transform2D {
 
60
   children [
 
61
    Shape {
 
62
     appearance Appearance {
 
63
      material Material2D {
 
64
       lineProps LineProperties {
 
65
        width 0
 
66
       }
 
67
      }
 
68
      texture DEF GR RadialGradient {
 
69
       focalPoint 0 0.5
 
70
       key [0 0.5 1]
 
71
       keyValue [0 0 1 1 0 0 0 1 0]
 
72
      }
 
73
     }
 
74
     geometry DEF R Rectangle {
 
75
      size 200 200
 
76
     }
 
77
    }
 
78
    DEF TS TouchSensor {}
 
79
   ]
 
80
  }
 
81
  DEF C Conditional {
 
82
   buffer {
 
83
    REPLACE GR.spreadMethod BY 2
 
84
   }
 
85
  }
 
86
  DEF RC Conditional {
 
87
   buffer {
 
88
    REPLACE GR.spreadMethod BY 0
 
89
   }
 
90
  }
 
91
  DEF C2 Conditional {
 
92
   buffer {
 
93
    REPLACE GR.spreadMethod BY 1
 
94
   }
 
95
  }
 
96
  DEF RC2 Conditional {
 
97
   buffer {
 
98
    REPLACE GR.spreadMethod BY 2
 
99
   }
 
100
  }
 
101
  DEF TIME TimeSensor {
 
102
   cycleInterval 4
 
103
   loop TRUE
 
104
  }
 
105
  DEF CI PositionInterpolator2D {
 
106
   key [0 0.25 0.5 0.75 1]
 
107
   keyValue [0 0.5 0.5 1 1 0.5 0.5 0 0 0.5]
 
108
  }
 
109
 ]
 
110
}
 
111
 
 
112
ROUTE TS.isOver TO C.activate
 
113
ROUTE TS.isOver TO RC.reverseActivate
 
114
ROUTE TS.isActive TO C2.activate
 
115
ROUTE TS.isActive TO RC2.reverseActivate
 
116
ROUTE TIME.fraction_changed TO CI.set_fraction
 
117
ROUTE CI.value_changed TO GR.focalPoint
 
118