toytown.html 3.1 KB
Newer Older
Athanasios's avatar
Athanasios committed
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
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title> toy town </title>
	<link rel="stylesheet" type="text/css" href="x3dom.css">
	</link>
</head>

<body>
	<h1> toy town </h1>
	<table width="100%" height="85%" border="0">
		<tr>
			<td width="50%" align="center" valign="top" scope="col">
				<X3D id="shapedata" width="600px" height="600px" style="float:left">
					<Scene>
						<transform id="terrain">
							<Shape>
								<Appearance>
									<ImageTexture url="./img/Logo_bisH27mm.jpg"></ImageTexture>
									<Material diffuseColor="0, 1, 0"> </Material>
								</Appearance>
								<IndexedFaceSet solid="true" ccw="true" coordIndex="  0 3 2 1 -1">
									<Coordinate point="-5 0 -5, 5 0 -5, 5 0 5, -5 0 5">
									</Coordinate>
								</IndexedFaceSet>
							</Shape>
						</transform>
						<transform id="building_1">
							<Group DEF="building">
								<Shape DEF="roof">
									<!-- roof -->
									<Appearance>
										<Material diffuseColor="0.980, 0.502, 0.447"> </Material>
									</Appearance>
									<IndexedFaceSet solid="true" ccw="true" coordIndex="  7 4 8 -1 4 5 8 -1 5 6 8 -1 6 7 8 -1">
										<Coordinate DEF="pointset" point="-1 0 1, 1 0 1, 1 0 -1, -1 0 -1,
             	            -1 2 1, 1 2 1, 1 2 -1, -1 2 -1, 0 3 0 ">
										</Coordinate>
									</IndexedFaceSet>
								</Shape>
								<Shape DEF="wall">
									<!-- wall -->
									<Appearance>
										<Material diffuseColor="0.753, 0.753, 0.753"> </Material>
									</Appearance>
									<IndexedFaceSet solid="true" ccw="true" coordIndex=" 0 1 5 4 -1 1 2 6 5 -1 2 3 7 6 -1 3 0 4 7 -1">
										<Coordinate USE="pointset">
										</Coordinate>
									</IndexedFaceSet>
								</Shape>
								<Shape DEF="ground">
									<!-- ground -->
									<Appearance>
										<Material diffuseColor="0.180, 0.280, 0.230"> </Material>
									</Appearance>
									<IndexedFaceSet solid="true" ccw="true" coordIndex=" 0 3 2 1 -1 ">
										<Coordinate USE="pointset">
										</Coordinate>
									</IndexedFaceSet>
								</Shape>
							</Group>
						</Transform>
						<Transform id="building_2" translation="3 0 0">
							<Group>
								<Shape USE="roof">
								</Shape>
								<Shape USE="wall">
								</Shape>
								<Shape USE="ground">
								</Shape>
							</Group>
						</Transform>
						<Transform id="building_3" translation="0 0 4">
							<Group>
								<Shape USE="roof">
								</Shape>
								<Shape USE="wall">
								</Shape>
								<Shape USE="ground">
								</Shape>
							</Group>
						</Transform>
						<Transform id="building_4" translation="-3 0 0">
							<Group>
								<Shape USE="roof">
								</Shape>
								<Shape USE="wall">
								</Shape>
								<Shape USE="ground">
								</Shape>
							</Group>
						</Transform>
					</Scene>
				</X3D>
			</td>
			<td width="50%" align="left" valign="top" scope="col">
				DEF / USE
			</td>
Athanasios's avatar
Athanasios committed
100
101
102
		</tr>
	</table>
	<script type="text/javascript" src="x3dom.js"></script>
Athanasios's avatar
Athanasios committed
103
104
105
</body>

</html>