-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (95 loc) · 4.96 KB
/
Copy pathindex.html
File metadata and controls
114 lines (95 loc) · 4.96 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="theme-color" content="#050505">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>AETHER | Gesture Creative Sandbox</title>
<meta name="description" content="A browser-based, gesture-controlled 3D creative sandbox built with Three.js and MediaPipe. Interact with digital matter using your hands.">
<meta name="keywords" content="Three.js, WebGL, MediaPipe, Hand Tracking, Generative Art, Creative Coding, Salah Uddin Kader, Interactive">
<meta name="author" content="Salah Uddin Kader">
<meta name="robots" content="index, follow">
<meta property="og:type" content="website">
<meta property="og:url" content="https://your-portfolio-link.com/">
<meta property="og:title" content="AETHER | Gesture Creative Sandbox">
<meta property="og:description" content="Control 3D shapes and particles with your hands in this real-time WebGL engine.">
<meta property="og:image" content="https://via.placeholder.com/1200x630.png?text=AETHER+ENGINE">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="AETHER | Gesture Creative Sandbox">
<meta name="twitter:description" content="Real-time hand tracking and 3D generative art in the browser.">
<meta name="twitter:image" content="https://via.placeholder.com/1200x630.png?text=AETHER+ENGINE">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='40' fill='none' stroke='%2300ffcc' stroke-width='10' /><circle cx='50' cy='50' r='15' fill='%2300ffcc' /></svg>">
<link rel="stylesheet" href="style.css">
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/",
"@mediapipe/tasks-vision": "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3"
}
}
</script>
<style>
/* Extra style for the typing cursor */
.typing-cursor::after {
content: '|';
animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }
</style>
</head>
<body>
<div id="loader">
<div class="loader-content">
<h1>AETHER ENGINE</h1>
<p id="typing-text" class="typing-cursor"></p>
<div class="bar-container"><div class="bar"></div></div>
<div id="permission-note" class="hidden">
<p class="privacy-text">⚠ CAMERA ACCESS REQUIRED FOR HAND GESTURES</p>
<button id="start-btn">ACTIVATE SYSTEM</button>
</div>
</div>
</div>
<div id="hud">
<div class="hud-panel top-left">
<div class="stat-row"><span class="label">SHAPE:</span> <span id="hud-shape" class="value glow-text">INIT</span></div>
<div class="stat-row"><span class="label">MODE:</span> <span id="hud-mode" class="value glow-text">NEUTRAL</span></div>
</div>
<div class="hud-panel bottom-left">
<div class="stat-row"><span class="label">DETECTED:</span> <span id="hud-gesture" class="value">SCANNING...</span></div>
<div class="stat-row"><span class="label">ACTION:</span> <span id="hud-action" class="value action-text">WAITING</span></div>
</div>
<div class="hud-panel bottom-right">
<div class="stat-block">
<span class="label">ENERGY (HEIGHT)</span>
<div class="meter"><div id="meter-energy" style="width: 0%"></div></div>
</div>
<div class="stat-block">
<span class="label">INTENSITY (PINCH)</span>
<div class="meter"><div id="meter-intensity" style="width: 0%"></div></div>
</div>
</div>
<div class="dev-credit">ENGINEERING // SALAH UDDIN KADER</div>
</div>
<video id="webcam" autoplay playsinline></video>
<canvas id="canvas"></canvas>
<script>
const textToType = "INITIALIZING NEURAL SANDBOX...";
const typeContainer = document.getElementById('typing-text');
let typeIndex = 0;
function typeWriter() {
if (typeIndex < textToType.length) {
typeContainer.innerHTML += textToType.charAt(typeIndex);
typeIndex++;
setTimeout(typeWriter, 50); // Speed of typing
}
}
// Start typing immediately
window.addEventListener('DOMContentLoaded', typeWriter);
</script>
<script type="module" src="script.js"></script>
</body>
</html>