-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (67 loc) · 3.27 KB
/
Copy pathindex.html
File metadata and controls
85 lines (67 loc) · 3.27 KB
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
<!DOCTYPE html>
<html>
<head>
<title>AR Particle Text Effect</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- A-Frame and AR.js -->
<script src="https://aframe.io/releases/1.7.1/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<!-- External CSS -->
<link rel="stylesheet" href="style.css">
<!-- Import Map aligned with A-Frame 1.7.1 (Three r170) -->
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/",
"lil-gui": "https://cdn.jsdelivr.net/npm/lil-gui@0.19.1/dist/lil-gui.esm.js"
}
}
</script>
<!-- Load main logic as a module -->
<script type="module" src="main.js"></script>
</head>
<body style="margin: 0; overflow: hidden;">
<div id="ui-container">
<div class="control-group">
<label for="font-select">Select Font</label>
<select id="font-select">
<option value="">Loading fonts...</option>
</select>
</div>
<button id="explode-button">Explode</button>
</div>
<!--
Modern A-Frame 1.7.1 uses physicallyCorrectLights by default,
but we explicitly set renderer properties for best glass results.
-->
<a-scene embedded
arjs="sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3;"
renderer="antialias: true; alpha: true; colorManagement: true; physicallyCorrectLights: true; exposure: 1.2;">
<a-marker type="barcode" value="14">
<a-entity id="particle-text-entity"
particle-text="text: > ; density: 50; particleSize: 0.02; textSize: 0.5; scatterRadius: 20.0;"
animation="property: rotation; to: -90 0 0; dur: 2000; delay: 0; easing: easeOutElastic; loop: true"
rotation="-90 90 0" position="-1 0.5 -1">
</a-entity>
<a-entity id="particle-text-entity"
particle-text="text: > ; density: 50; particleSize: 0.02; textSize: 0.5; scatterRadius: 20.0;"
animation="property: rotation; to: -90 0 0; dur: 2000; delay: 500; easing: easeOutElastic; loop: true"
rotation="-90 90 0" position="0 0.5 -1">
</a-entity>
<a-entity id="particle-text-entity"
particle-text="text: > ; density: 50; particleSize: 0.02; textSize: 0.5; scatterRadius: 20.0;"
animation="property: rotation; to: -90 0 0; dur: 2000; delay: 1000; easing: easeOutElastic; loop: true"
rotation="-90 90 0" position="1 0.5 -1">
</a-entity>
<a-entity id="particle-text-entity"
particle-text="text: A t e l i e r n u m ; density: 300; particleSize: 0.08; textSize: 0.9; scatterRadius: 10.0;"
animation="property: position; to: -7 0.5 0; dur: 9000; easing: linear; loop: true" rotation="-90 0 0"
position="7 0.5 0">
</a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>