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
92
93
94
95
96
97
|
InitialObjectDescriptor {
objectDescriptorID 1
audioProfileLevelIndication 255
visualProfileLevelIndication 254
sceneProfileLevelIndication 254
graphicsProfileLevelIndication 254
ODProfileLevelIndication 255
esDescr [
ES_Descriptor {
ES_ID 1
decConfigDescr DecoderConfigDescriptor {
streamType 3
decSpecificInfo BIFSConfig {
isCommandStream true
pixelMetric true
pixelWidth 440
pixelHeight 440
}
}
}
ES_Descriptor {
ES_ID 2
decConfigDescr DecoderConfigDescriptor {
streamType 1
}
}
]
}
OrderedGroup {
children [
Background2D {
backColor 1 1 1
}
WorldInfo {
info ["This shows image texture" "with object scaling and texture transform" "" "GPAC Regression Tests" "$Date: 2007/07/27 09:46:10 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
title "Image Texture Test"
}
DEF TR Transform2D {
rotationAngle 0.78
children [
Shape {
geometry IndexedLineSet2D {
coord Coordinate2D {
point [0 200 0 -200]
}
}
}
Shape {
appearance Appearance {
texture ImageTexture {
url [od:10]
}
textureTransform DEF TX TextureTransform {
translation 0 0.5
}
}
geometry Rectangle {
size 200 200
}
}
]
}
DEF TS TimeSensor {
cycleInterval 4
loop TRUE
}
DEF PI PositionInterpolator2D {
key [0 0.5 1]
keyValue [-0.5 -0.5 0.5 0.5 -0.5 -0.5]
}
DEF SI PositionInterpolator2D {
key [0 0.5 1]
keyValue [0.5 0.5 1.5 1.5 0.5 0.5]
}
]
}
ROUTE TS.fraction_changed TO SI.set_fraction
ROUTE SI.value_changed TO TR.scale
AT 0 {
UPDATE OD [
ObjectDescriptor {
objectDescriptorID 10
esDescr [
ES_Descriptor {
ES_ID 20
muxInfo MuxInfo {
fileName "auxiliary_files/logo.jpg"
}
}
]
}
]
}
|