/
viewpoints_tests.wrl
74 lines (66 loc) · 2.46 KB
/
viewpoints_tests.wrl
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
#VRML V2.0 utf8
# This is a test of Viewpoint.
Group{
children [
# Camera settings "encoded" in the VRML declaration below :
# direction 0 0.700684607028961 0.000241928064497
# up 0 -0.000345317530446 0.999999940395355
# gravity-up 0 0 1
Transform {
translation 0.004618315026164 -94.837326049804687 6.33106803894043
rotation 1 0 0 1.570796370506287
children Viewpoint {
position 0 0 0 # camera position is expressed by translation
orientation 0 0 1 0
}
}
Viewpoint {
position 0.00461831502616405 -94.837326049804687 6.3310680389404297
orientation 1 0 0 1.5711416006088257
}
Viewpoint {
position 1 1 10
orientation 1 0 0 1.5711416006088257
description "Yet another viewpoint on z = 10
with a dummy descriptio, that is very long and
spans multiple lines. VRML browser should still show a sensible
UI for this viewpoint, right ?
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
More text... More text... More text... More text... More text... More text...
"
}
# Camera settings "encoded" in the VRML declaration below :
# direction 0 0.700684666633606 0.000241897432716
# up 0 -0.000345273787389 0.999999940395355
# gravity-up 0 0 1
Transform {
translation 12 12 12
rotation 1 0 0 1.570796370506287
children Viewpoint {
position 0 0 0 # camera position is expressed by translation
orientation 0 0 1 0
description "translated viewpoint with fixed gravity up"
}
}
Transform {
rotation 1 0 0 1.57
translation 0.00461831502616405 -94.837326049804687 6.3310680389404297
children Viewpoint {
description "viewpoint up = gravity = +Z"
}
}
Viewpoint {
position 0.00461831502616405 -94.837326049804687 6.3310680389404297
direction 0 1 0
up 0 0 1
description "viewpoint up = +Z but gravity = +Y"
}
Inline { url "../../castle/old/vrml_2/castle_with_lights.wrl" }
]
}