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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
<head>
<meta name='comment' content='World of Titania'/>
<meta name='created' content='Tue, 14 Apr 2015 09:48:45 GMT'/>
<meta name='creator' content='Holger Seelig'/>
<meta name='generator' content='Titania V0.7.8, http://titania.create3000.de'/>
<meta name='modified' content='Fri, 17 Apr 2015 09:15:59 GMT'/>
</head>
<Scene>
<WorldInfo
title='Desk lamp'
info='"Copyright (c) 1996-97, David R. Nadeau"'/>
<Viewpoint DEF='Entry'
description='Entry View'
position='0 0.15 1'/>
<NavigationInfo/>
<Transform>
<Shape>
<Appearance>
<Material
diffuseColor='0 0 0'
emissiveColor='0.7 0.7 0.7'/>
</Appearance>
<Box
size='2.25 0.01 2.25'/>
</Shape>
</Transform>
<Transform
translation='0 0.01 0'
rotation='1 0 0 1.571'>
<PlaneSensor DEF='MoveLamp'/>
<Transform DEF='Lamp'
rotation='-1 -0 -0 1.571'>
<Shape>
<Appearance>
<Material
diffuseColor='0.5 0.5 0.5'/>
</Appearance>
<Cylinder
height='0.01'
radius='0.1'/>
</Shape>
<Group>
<CylinderSensor DEF='MoveFirstArm'/>
<Transform DEF='FirstArm'>
<Transform
translation='0 0.15 0'
rotation='-1 -0 -0 0.7'
center='0 -0.15 0'>
<Shape DEF='LampArm'>
<Appearance DEF='Red'>
<Material
diffuseColor='1 0.2 0.2'/>
</Appearance>
<Cylinder
height='0.3'
radius='0.01'/>
</Shape>
<Group>
<CylinderSensor DEF='MoveSecondArm'/>
<Transform DEF='SecondArm'>
<Transform
translation='0 0.3 0'
rotation='1 0 0 1.9'
center='0 -0.15 0'>
<Shape USE='LampArm'/>
<Group>
<Transform
translation='0 0.16 0'>
<SphereSensor DEF='MoveLampShade'
offset='-1 -0 -0 1.25'/>
<Transform DEF='LampShade'
rotation='-1 0 0 1.25'>
<Transform
translation='0 -0.075 0'>
<Shape>
<Appearance USE='Red'/>
<Cone
bottom='false'
height='0.15'
bottomRadius='0.12'/>
</Shape>
<Transform
translation='0 0.075 7.2955e-10'>
<Shape>
<Appearance>
<Material
diffuseColor='1 1 1'/>
</Appearance>
<Cylinder
height='0.03'
radius='0.007'/>
</Shape>
</Transform>
<Transform
translation='0 -0.05 7.2955e-10'>
<Shape>
<Appearance>
<Material
diffuseColor='0 0 0'
emissiveColor='1 1 1'/>
</Appearance>
<Sphere
radius='0.05'/>
</Shape>
</Transform>
</Transform>
</Transform>
</Transform>
</Group>
</Transform>
</Transform>
</Group>
</Transform>
</Transform>
</Group>
</Transform>
</Transform>
<ROUTE fromNode='MoveLamp' fromField='translation_changed' toNode='Lamp' toField='set_translation'/>
<ROUTE fromNode='MoveFirstArm' fromField='rotation_changed' toNode='FirstArm' toField='set_rotation'/>
<ROUTE fromNode='MoveSecondArm' fromField='rotation_changed' toNode='SecondArm' toField='set_rotation'/>
<ROUTE fromNode='MoveLampShade' fromField='rotation_changed' toNode='LampShade' toField='set_rotation'/>
</Scene>
</X3D>
|