~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to regression_tests/bifs/bifs-2D-texturing-gradients-transparent.bt

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-02-04 00:12:54 UTC
  • Revision ID: package-import@ubuntu.com-20120204001254-l7v7u4kc4m7cxcqn
Tags: upstream-0.4.5+svn3450~dfsg3
ImportĀ upstreamĀ versionĀ 0.4.5+svn3450~dfsg3

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 600
 
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 shows usage of transparency with gradient" 
 
32
    "Move the rectangle over the circle to see that the gradient is not uniformly transparent." 
 
33
    "" 
 
34
    "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.3 $" 
 
35
    "(C) 2002-2006 GPAC Team"
 
36
   ]
 
37
   title "Gradient and Transparency"
 
38
  }
 
39
  DEF TR Transform2D {
 
40
   translation 200 50
 
41
   children [
 
42
    Shape {
 
43
     appearance Appearance {
 
44
      material Material2D {
 
45
       lineProps LineProperties {
 
46
        width 0
 
47
       }
 
48
      }
 
49
      texture DEF GL LinearGradient {
 
50
       endPoint 1 1
 
51
       key [0 0.4 1]
 
52
       keyValue [0 0 1 1 0 1 0 1 1]
 
53
       spreadMethod 1
 
54
      }
 
55
     }
 
56
     geometry Rectangle {
 
57
      size 200 200
 
58
     }
 
59
    }
 
60
    DEF PS PlaneSensor2D {
 
61
     maxPosition 300 300
 
62
     minPosition -300 -300
 
63
     offset 200 50
 
64
    }
 
65
   ]
 
66
  }
 
67
  Transform2D {
 
68
   scale 1 1.2
 
69
   translation -50 0
 
70
   children [
 
71
    Shape {
 
72
     appearance Appearance {
 
73
      texture RadialGradient {
 
74
       focalPoint 0.75 0.5
 
75
       key [0 0.6 1]
 
76
       keyValue [1 1 1 1 0 0 1 1 0]
 
77
       opacity [1 1 0.3]
 
78
      }
 
79
     }
 
80
     geometry Circle {
 
81
      radius 100
 
82
     }
 
83
    }
 
84
   ]
 
85
  }
 
86
  Transform2D {
 
87
   translation 0 -150
 
88
   children [
 
89
    Shape {
 
90
     appearance Appearance {
 
91
      material Material2D {
 
92
       emissiveColor 0 0 0
 
93
       filled TRUE
 
94
      }
 
95
     }
 
96
     geometry Text {
 
97
      string ["Drag square around screen"]
 
98
      fontStyle DEF FS FontStyle {
 
99
       justify ["MIDDLE" "MIDDLE"]
 
100
       size 20
 
101
      }
 
102
     }
 
103
    }
 
104
   ]
 
105
  }
 
106
  DEF TS TimeSensor {
 
107
   cycleInterval 2
 
108
   loop TRUE
 
109
  }
 
110
  DEF C PositionInterpolator2D {
 
111
   key [0 0.5 1]
 
112
   keyValue [1 1 1 0 1 1]
 
113
  }
 
114
 ]
 
115
}
 
116
 
 
117
ROUTE TS.fraction_changed TO C.set_fraction
 
118
ROUTE C.value_changed TO GL.endPoint
 
119
ROUTE PS.translation_changed TO TR.translation
 
120