-
Notifications
You must be signed in to change notification settings - Fork 30
/
animated.html
72 lines (66 loc) 路 1.88 KB
/
animated.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="../dist/aframe-street-component.js"></script>
<script src="//cdn.8thwall.com/web/aframe/aframe-extras-6.1.1.min.js"></script>
<title>Street Component!</title>
</head>
<body>
<a-scene gltf-model="dracoDecoderPath: https://www.gstatic.com/draco/versioned/decoders/1.4.3/">
<a-assets>
<!-- <streetmix-assets url="assets/"></streetmix-assets> -->
</a-assets>
<a-entity id="test" street='length: 50; left: narrow; right: fence; JSON:
{
"streetmixSegmentsFeet": [
{
"width": 9,
"variantString": "empty",
"type": "sidewalk"
},
{
"width": 9,
"variantString": "outbound",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "outbound|pedestrian|animated",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "outbound|car|animated",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "outbound|sharrow|animated",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "outbound|microvan|animated",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "inbound|truck|animated",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "dense|animated",
"type": "sidewalk"
},
{
"width": 4,
"variantString": "empty",
"type": "sidewalk"
}
]
}'></a-entity>
</a-scene>
</body>
</html>