~ubuntu-branches/ubuntu/utopic/gpac/utopic-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
InitialObjectDescriptor {
  objectDescriptorID 1
  ODProfileLevelIndication 0xFF
  sceneProfileLevelIndication 0xFE
  audioProfileLevelIndication 0xFF
  visualProfileLevelIndication 0xFF
  graphicsProfileLevelIndication 0xFE

  esdescr [
    ES_Descriptor {
      es_id 1
      decConfigDescr DecoderConfigDescriptor {
				streamType 3
				decSpecificInfo BIFSConfig {
				  isCommandStream true
				  pixelMetric true
				  pixelWidth 200
				  pixelHeight 200
				}
      }
    }
    ES_Descriptor {
      es_id 2
      decConfigDescr DecoderConfigDescriptor {
				streamType 1
      }
    }
  ]
}

Group { 
 children [

  WorldInfo {
   title "Texture Transform test"
   info ["This shows a 3D cube" "mapped with an alpha PNG and texture transform" "" "GPAC Regression Tests" "$Date: 2007/07/27 09:46:08 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
  }
			
	DEF TR Transform {
  	rotation 1 1 1 0.75
  	children [
     Shape {
     	appearance Appearance {
     		material DEF MAT Material {}
     		textureTransform DEF MX TransformMatrix2D {mxx 3 myy 2}
	      texture ImageTexture { url "10"}
   	 }
     geometry Box {size 64 64 64 }
    }
   ]
  }

  DEF TS TimeSensor { cycleInterval 8.0 loop TRUE }
  DEF SI ScalarInterpolator  {
  	key [0 0.25 0.5 0.75 1]
  	keyValue [1 1 1 6 1]
 	}
  DEF SI2 ScalarInterpolator  {
  	key [0 0.25 0.5 0.75 1]
  	keyValue [1 6 1 1 1]
 	}
  DEF CI ColorInterpolator {
  	key [0 0.5 1]
  	keyValue [1 1 1, 0 0 1, 1 1 1]
 	}
 ]
}

ROUTE TS.fraction_changed TO SI.set_fraction
ROUTE SI.value_changed TO MX.mxy
ROUTE TS.fraction_changed TO SI2.set_fraction
ROUTE SI2.value_changed TO MX.myx
ROUTE TS.fraction_changed TO CI.set_fraction
ROUTE CI.value_changed TO MAT.diffuseColor

AT 0 {
	UPDATE OD [
		ObjectDescriptor {
		  objectDescriptorID  10
		  esDescr [
		    ES_Descriptor {
		      ES_ID 20
		      muxInfo MuxInfo {
		       fileName "auxiliary_files/logo.jpg"
		      }
		    }
		  ]
		}
	]
}