Prompt specification
Build or customize the Three.js 3D scene "Wooden clothespin exploded view" inside the active workspace.
Engineering Constraints:
1. Runtime & Orbit: Use Three.js r160 with OrbitControls (damping enabled) and ACESFilmicToneMapping.
2. Frame Timing: Drive all motion strictly with clock.getDelta() so animation speed is FPS-independent.
3. Viewport Hygiene: Handle window resize cleanly, cap DPR at Math.min(window.devicePixelRatio, 2), and dispose geometries/materials/renderer on unmount.
Scene Metadata:
Scene: Wooden clothespin exploded view
Category: Everyday & Industrial · Style: Procedural Solid / Shader 3D
License: MIT · Reference: https://three3d.app/scene/wooden-clothespin-exploded-view-x0001
Scene Description Prompt:
A stylized wooden clothespin, assembled beside its exploded jaws and spring. Build it with Three.js from cdnjs in one HTML file.
Working Three.js Starter (wooden-clothespin-exploded-view-x0001):
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wooden Clothespin — Exploded Study</title>
<style>
:root {
--ink: #332820;
--muted: #7c7062;
--line: rgba(73, 56, 39, 0.18);
--paper: #eee5d5;
--accent: #b96832;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background:
radial-gradient(circle at 48% 38%, #faf5ea 0%, var(--paper) 62%, #dfd2be 100%);
color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
}
#app,
#stage {
position: fixed;
inset: 0;
}
#stage canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
cursor: grab;
}
#stage canvas:active {
cursor: grabbing;
}
.vignette {
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 50% 45%, transparent 45%, rgba(75, 55, 35, 0.08) 100%);
mix-blend-mode: multiply;
}
header {
position: fixed;
top: 30px;
left: 34px;
z-index: 5;
pointer-events: none;
}
.eyebrow {
margin: 0 0 9px;
color: var(--accent);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.24em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(28px, 3.2vw, 48px);
font-weight: 500;
letter-spacing: -0.035em;
line-height: 0.98;
}
.subtitle {
max-width: 330px;
margin: 13px 0 0;
color: var(--muted);
font-size: 12px;
line-height: 1.55;
}
nav {
position: fixed;
top: 30px;
right: 30px;
z-index: 6;
display: flex;
gap: 6px;
padding: 5px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(248, 243, 234, 0.72);
box-shadow: 0 10px 35px rgba(71, 51, 31, 0.08);
backdrop-filter: blur(14px);
}
button {
appearance: none;
border: 0;
border-radius: 999px;
padding: 9px 13px;
background: transparent;
color: var(--muted);
font: inherit;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
cursor: pointer;
transition:
color 160ms ease,
background 160ms ease,
transform 160ms ease;
}
button:hover {
color: var(--ink);
transform: translateY(-1px);
}
button.active {
background: var(--ink);
color: #fffaf0;
}
.hint {
position: fixed;
left: 34px;
bottom: 28px;
z-index: 5;
display: flex;
align-items: center;
gap: 10px;
color: var(--muted);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
pointer-events: none;
}
.mouse {
position: relative;
width: 18px;
height: 25px;
border: 1.5px solid currentColor;
border-radius: 10px;
}
.mouse::before {
position: absolute;
top: 4px;
left: 7px;
width: 2px;
height: 5px;
border-radius: 2px;
background: currentColor;
content: "";
}
#labels {
position: fixed;
inset: 0;
z-index: 4;
pointer-events: none;
}
.part-label {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
gap: 8px;
color: rgba(51, 40, 32, 0.72);
font-size: 9px;
font-weight: 800;
letter-spacing: 0.15em;
text-transform: uppercase;
white-space: nowrap;
will-change: transform;
}
.part-label::before {
width: 21px;
height: 1px;
background: rgba(79, 58, 39, 0.38);
content: "";
}
.part-label::after {
position: absolute;
left: -3px;
width: 5px;
height: 5px;
border: 1px solid rgba(79, 58, 39, 0.48);
border-radius: 50%;
background: rgba(248, 243, 234, 0.8);
content: "";
}
.part-label.primary {
color: var(--accent);
}
.part-label.primary::before {
background: rgba(185, 104, 50, 0.55);
}
#loading {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: var(--paper);
color: var(--muted);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
transition: opacity 500ms ease;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
@media (max-width: 720px) {
header {
top: 22px;
left: 22px;
}
.subtitle {
display: none;
}
nav {
top: auto;
right: 50%;
bottom: 20px;
transform: translateX(50%);
}
.hint {
display: none;
}
#labels {
display: none;
}
}
</style>
</head>
<body>
<div id="app">
<div id="stage"></div>
<div class="vignette"></div>
<header>
<p class="eyebrow">Object Study / 01</p>
<h1>Wooden<br />Clothespin</h1>
<p class="subtitle">
A traditional spring clothespin shown assembled and as an exploded arrangement
of its two carved wooden jaws and torsion spring.
</p>
</header>
<nav aria-label="Camera views">
<button class="active" data-view="overview">Overview</button>
<button data-view="assembled">Assembled</button>
<button data-view="exploded">Exploded</button>
</nav>
<div id="labels" aria-hidden="true">
<div class="part-label primary" data-label="assembled">Assembled</div>
<div class="part-label" data-label="jawA">Upper jaw</div>
<div class="part-label" data-label="jawB">Lower jaw</div>
<div class="part-label" data-label="spring">Torsion spring</div>
</div>
<div class="hint">
<span class="mouse"></span>
<span>Drag to orbit · Scroll to zoom</span>
</div>
<div id="loading">Building the model</div>
</div>
<script type="module">
import * as THREE from "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js";
const stage = document.getElementById("stage");
const loading = document.getElementById("loading");
// Renderer
const renderer = new THREE.WebGLRenderer({
antialias: true,
powerPreference: "high-performance"
});
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.08;
stage.appendChild(renderer.domElement);
// Scene
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xeee5d5);
scene.fog = new THREE.Fog(0xeee5d5, 15, 34);
const camera = new THREE.PerspectiveCamera(
38,
window.innerWidth / window.innerHeight,
0.1,
100
);
// Lighting
scene.add(new THREE.HemisphereLight(0xfff7e8, 0x8b765e, 2.05));
const keyLight = new THREE.DirectionalLight(0xffe8c7, 4.1);
keyLight.position.set(-3.8, 7.5, 5.8);
keyLight.castShadow = true;
keyLight.shadow.mapSize.set(2048, 2048);
keyLight.shadow.camera.left = -8;
keyLight.shadow.camera.right = 8;
keyLight.shadow.camera.top = 8;
keyLight.shadow.camera.bottom = -5;
keyLight.shadow.camera.near = 0.5;
keyLight.shadow.camera.far = 25;
keyLight.shadow.bias = -0.0005;
keyLight.shadow.normalBias = 0.025;
scene.add(keyLight);
const rimLight = new THREE.DirectionalLight(0xbfd4dc, 2.15);
rimLight.position.set(6, 4.5, -5);
scene.add(rimLight);
const fillLight = new THREE.PointLight(0xffc891, 18, 12, 2);
fillLight.position.set(-4, 2.5, 4);
scene.add(fillLight);
// Procedural wood grain
function createWoodTexture() {
const canvas = document.createElement("canvas");
canvas.width = 256;
canvas.height = 1024;
const ctx = canvas.getContext("2d");
let seed = 87123;
const random = () => {
seed = (seed * 16807) % 2147483647;
return (seed - 1) / 2147483646;
};
const gradient = ctx.createLinearGradient(0, 0, 256, 0);
gradient.addColorStop(0, "#c47b3e");
gradient.addColorStop(0.22, "#d99455");
gradient.addColorStop(0.53, "#c98243");
gradient.addColorStop(0.78, "#d99a5c");
gradient.addColorStop(1, "#b96d34");
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, 256, 1024);
// Long vertical fibers.
for (let i = 0; i < 105; i++) {
const x = random() * 256;
const bend = (random() - 0.5) * 22;
const alpha = 0.035 + random() * 0.11;
const width = 0.4 + random() * 1.8;
ctx.beginPath();
ctx.moveTo(x, -30);
ctx.bezierCurveTo(
x + bend,
250,
x - bend * 0.6,
670,
x + bend * 0.25,
1050
);
ctx.strokeStyle = `rgba(87, 42, 17, ${alpha})`;
ctx.lineWidth = width;
ctx.stroke();
}
// Lighter fibers.
for (let i = 0; i < 65; i++) {
const x = random() * 256;
ctx.beginPath();
ctx.moveTo(x, 0);
ctx.bezierCurveTo(
x + random() * 18 - 9,
300,
x + random() * 22 - 11,
700,
x + random() * 14 - 7,
1024
);
ctx.strokeStyle = `rgba(255, 218, 163, ${0.04 + random() * 0.08})`;
ctx.lineWidth = 0.5 + random();
ctx.stroke();
}
// Small elliptical knots.
for (let i = 0; i < 9; i++) {
const x = 25 + random() * 205;
const y = 80 + random() * 860;
const rx = 5 + random() * 12;
const ry = 16 + random() * 42;
for (let ring = 0; ring < 4; ring++) {
ctx.beginPath();
ctx.ellipse(
x,
y,
rx + ring * 3.1,
ry + ring * 6.5,
(random() - 0.5) * 0.12,
0,
Math.PI * 2
);
ctx.strokeStyle = `rgba(91, 42, 16, ${0.11 - ring * 0.018})`;
ctx.lineWidth = 1;
ctx.stroke();
}
}
const texture = new THREE.CanvasTexture(canvas);
texture.colorSpace = THREE.SRGBColorSpace;
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set(1.15, 1);
texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
return texture;
}
const woodTexture = createWoodTexture();
const upperWood = new THREE.MeshStandardMaterial({
map: woodTexture,
color: 0xffd7aa,
roughness: 0.72,
metalness: 0
});
const lowerWood = new THREE.MeshStandardMaterial({
map: woodTexture,
color: 0xeab77d,
roughness: 0.78,
metalness: 0
});
const woodEdge = new THREE.MeshStandardMaterial({
color: 0x99552d,
roughness: 0.86,
metalness: 0
});
const grooveMaterial = new THREE.MeshStandardMaterial({
color: 0x70371e,
roughness: 0.92,
metalness: 0
});
const springMaterial = new THREE.MeshStandardMaterial({
color: 0x899296,
roughness: 0.26,
metalness: 0.9
});
// Rounded, slightly organic wooden jaw profile.
function createJawGeometry() {
const shape = new THREE.Shape();
shape.moveTo(-0.105, -0.045);
shape.bezierCurveTo(-0.21, -0.045, -0.235, 0.075, -0.18, 0.22);
shape.lineTo(-0.275, 0.82);
shape.lineTo(-0.295, 2.72);
shape.bezierCurveTo(-0.29, 3.02, -0.22, 3.28, -0.055, 3.38);
shape.bezierCurveTo(0.10, 3.46, 0.235, 3.22, 0.255, 2.96);
shape.lineTo(0.255, 2.63);
shape.lineTo(0.225, 0.75);
shape.lineTo(0.13, 0.20);
shape.bezierCurveTo(0.205, 0.075, 0.185, -0.045, 0.105, -0.045);
shape.closePath();
const depth = 0.34;
const geometry = new THREE.ExtrudeGeometry(shape, {
depth,
steps: 1,
bevelEnabled: true,
bevelSegments: 4,
bevelSize: 0.045,
bevelThickness: 0.04,
curveSegments: 18
});
geometry.translate(0, 0, -depth / 2);
geometry.computeVertexNormals();
return geometry;
}
const jawGeometry = createJawGeometry();
function createJaw(material, grooves = true) {
const group = new THREE.Group();
const jaw = new THREE.Mesh(jawGeometry, [material, woodEdge]);
jaw.castShadow = true;
jaw.receiveShadow = true;
group.add(jaw);
// Shallow decorative score marks on the visible face.
if (grooves) {
const positions = [
{ y: 2.48, width: 0.27 },
{ y: 2.69, width: 0.30 },
{ y: 2.91, width: 0.26 }
];
positions.forEach(({ y, width }) => {
const mark = new THREE.Mesh(
new THREE.BoxGeometry(width, 0.017, 0.012),
grooveMaterial
);
mark.position.set(0.012, y, 0.213);
mark.rotation.z = -0.025;
mark.castShadow = true;
group.add(mark);
});
}
return group;
}
// Continuous torsion spring: two arms joined by a multi-turn coil.
class SpringCurve extends THREE.Curve {
getPoint(t, target = new THREE.Vector3()) {
const radius = 0.21;
const centerY = 0.07;
if (t < 0.13) {
const u = t / 0.13;
const smooth = u * u * (3 - 2 * u);
return target.set(
THREE.MathUtils.lerp(-0.145, 0, smooth),
THREE.MathUtils.lerp(1.08, 0.28, smooth),
0
);
}
if (t < 0.86) {
const u = (t - 0.13) / 0.73;
const angle = Math.PI / 2 + u * Math.PI * 16;
return target.set(
Math.cos(angle) * radius,
centerY + Math.sin(angle) * radius,
0
);
}
const u = (t - 0.86) / 0.14;
const smooth = u * u * (3 - 2 * u);
return target.set(
THREE.MathUtils.lerp(0, 0.145, smooth),
THREE.MathUtils.lerp(0.28, 1.08, smooth),
0
);
}
}
function createSpring() {
const geometry = new THREE.TubeGeometry(
new SpringCurve(),
360,
0.023,
9,
false
);
const mesh = new THREE.Mesh(geometry, springMaterial);
mesh.castShadow = true;
mesh.receiveShadow = true;
return mesh;
}
// Ground
const ground = new THREE.Mesh(
new THREE.PlaneGeometry(200, 200),
new THREE.MeshStandardMaterial({
color: 0xeee5d5,
roughness: 1,
metalness: 0
})
);
ground.rotation.x = -Math.PI / 2;
ground.position.y = -0.045;
ground.receiveShadow = true;
scene.add(ground);
// Low display plinth under the assembled object.
const plinth = new THREE.Mesh(
new THREE.CylinderGeometry(1.22, 1.28, 0.055, 80),
new THREE.MeshStandardMaterial({
color: 0xe1d4bf,
roughness: 0.9,
metalness: 0
})
);
plinth.position.set(-1.55, -0.015, 0);
plinth.receiveShadow = true;
plinth.castShadow = true;
scene.add(plinth);
// Assembled clothespin
const assembled = new THREE.Group();
assembled.position.set(-1.55, 0.02, 0);
assembled.rotation.y = -0.23;
scene.add(assembled);
const assembledUpper = createJaw(upperWood);
assembledUpper.position.z = 0.205;
assembledUpper.rotation.z = 0.052;
assembled.add(assembledUpper);
const assembledLower = createJaw(lowerWood, false);
assembledLower.position.z = -0.205;
assembledLower.rotation.z = -0.057;
assembled.add(assembledLower);
const assembledSpring = createSpring();
assembledSpring.position.set(0, 0.02, 0.405);
assembledSpring.scale.setScalar(0.93);
assembled.add(assembledSpring);
// Exploded components
const explodedJawA = createJaw(upperWood);
explodedJawA.position.set(0.72, 0.08, 0.28);
explodedJawA.rotation.set(0.02, -0.31, -0.13);
scene.add(explodedJawA);
const explodedJawB = createJaw(lowerWood);
explodedJawB.position.set(1.96, 0.08, -0.08);
explodedJawB.rotation.set(-0.02, 0.31, 0.13);
scene.add(explodedJawB);
const explodedSpring = createSpring();
explodedSpring.position.set(3.55, 1.03, 0.3);
explodedSpring.rotation.set(0.08, -0.19, -0.12);
explodedSpring.scale.setScalar(1.17);
scene.add(explodedSpring);
// Label anchors
function addAnchor(parent, name, position) {
const anchor = new THREE.Object3D();
anchor.position.copy(position);
anchor.name = name;
parent.add(anchor);
return anchor;
}
const anchors = {
assembled: addAnchor(assembled, "assembled", new THREE.Vector3(0, 3.72, 0)),
jawA: addAnchor(explodedJawA, "jawA", new THREE.Vector3(0, 3.63, 0)),
jawB: addAnchor(explodedJawB, "jawB", new THREE.Vector3(0, 3.57, 0)),
spring: addAnchor(explodedSpring, "spring", new THREE.Vector3(0, 1.36, 0))
};
const labels = {};
document.querySelectorAll("[data-label]").forEach((element) => {
labels[element.dataset.label] = element;
});
// Custom camera controls — no addons.
const state = {
target: new THREE.Vector3(0.78, 1.48, 0),
radius: 9.2,
theta: 0.24,
phi: 1.17
};
const goal = {
target: state.target.clone(),
radius: state.radius,
theta: state.theta,
phi: state.phi
};
let activePreset = "overview";
function responsiveRadius(base) {
const aspect = window.innerWidth / window.innerHeight;
if (aspect < 0.8) return base * 1.75;
if (aspect < 1.25) return base * 1.3;
return base;
}
const presets = {
overview: {
target: new THREE.Vector3(0.78, 1.48, 0),
radius: 9.2,
theta: 0.24,
phi: 1.17
},
assembled: {
target: new THREE.Vector3(-1.48, 1.68, 0),
radius: 5.25,
theta: 0.29,
phi: 1.19
},
exploded: {
target: new THREE.Vector3(2.38, 1.58, 0),
radius: 5.55,
theta: 0.18,
phi: 1.17
}
};
function setPreset(name, immediate = false) {
const preset = presets[name];
activePreset = name;
goal.target.copy(preset.target);
goal.radius = responsiveRadius(preset.radius);
goal.theta = preset.theta;
goal.phi = preset.phi;
if (immediate) {
state.target.copy(goal.target);
state.radius = goal.radius;
state.theta = goal.theta;
state.phi = goal.phi;
}
document.querySelectorAll("[data-view]").forEach((button) => {
button.classList.toggle("active", button.dataset.view === name);
});
}
document.querySelectorAll("[data-view]").forEach((button) => {
button.addEventListener("click", () => setPreset(button.dataset.view));
});
const pointers = new Map();
let drag = null;
let lastPinchDistance = 0;
function pointerDistance() {
const values = [...pointers.values()];
if (values.length < 2) return 0;
return Math.hypot(
values[0].x - values[1].x,
values[0].y - values[1].y
);
}
renderer.domElement.addEventListener("pointerdown", (event) => {
renderer.domElement.setPointerCapture(event.pointerId);
pointers.set(event.pointerId, {
x: event.clientX,
y: event.clientY
});
if (pointers.size === 1) {
drag = {
id: event.pointerId,
x: event.clientX,
y: event.clientY,
button: event.button,
shift: event.shiftKey
};
} else if (pointers.size === 2) {
lastPinchDistance = pointerDistance();
}
});
renderer.domElement.addEventListener("pointermove", (event) => {
if (!pointers.has(event.pointerId)) return;
pointers.set(event.pointerId, {
x: event.clientX,
y: event.clientY
});
if (pointers.size >= 2) {
const distance = pointerDistance();
if (lastPinchDistance > 0 && distance > 0) {
goal.radius = THREE.MathUtils.clamp(
goal.radius * (lastPinchDistance / distance),
3.4,
19
);
}
lastPinchDistance = distance;
return;
}
if (!drag || drag.id !== event.pointerId) return;
const dx = event.clientX - drag.x;
const dy = event.clientY - drag.y;
drag.x = event.clientX;
drag.y = event.clientY;
if (drag.button === 2 || drag.shift) {
const panScale = state.radius * 0.0009;
goal.target.x -= dx * panScale;
goal.target.y += dy * panScale;
state.target.copy(goal.target);
} else {
goal.theta -= dx * 0.006;
goal.phi = THREE.MathUtils.clamp(goal.phi - dy * 0.006, 0.52, 1.49);
state.theta = goal.theta;
state.phi = goal.phi;
}
});
function endPointer(event) {
pointers.delete(event.pointerId);
if (pointers.size === 1) {
const [id, point] = [...pointers.entries()][0];
drag = {
id,
x: point.x,
y: point.y,
button: 0,
shift: false
};
} else {
drag = null;
}
lastPinchDistance = pointerDistance();
}
renderer.domElement.addEventListener("pointerup", endPointer);
renderer.domElement.addEventListener("pointercancel", endPointer);
renderer.domElement.addEventListener("contextmenu", (event) => event.preventDefault());
renderer.domElement.addEventListener(
"wheel",
(event) => {
event.preventDefault();
goal.radius = THREE.MathUtils.clamp(
goal.radius * Math.exp(event.deltaY * 0.001),
3.4,
19
);
},
{ passive: false }
);
window.addEventListener("keydown", (event) => {
if (event.key === "1") setPreset("overview");
if (event.key === "2") setPreset("assembled");
if (event.key === "3") setPreset("exploded");
});
// Labels are projected from their 3D anchors.
const projected = new THREE.Vector3();
function updateLabels() {
const width = window.innerWidth;
const height = window.innerHeight;
Object.entries(anchors).forEach(([name, anchor]) => {
anchor.getWorldPosition(projected);
projected.project(camera);
const element = labels[name];
if (!element) return;
const visible =
projected.z > -1 &&
projected.z < 1 &&
Math.abs(projected.x) < 1.15 &&
Math.abs(projected.y) < 1.15;
element.style.opacity = visible ? "1" : "0";
const x = (projected.x * 0.5 + 0.5) * width;
const y = (-projected.y * 0.5 + 0.5) * height;
element.style.transform = `translate(${x + 5}px, ${y - 4}px)`;
});
}
function updateCamera() {
const sinPhi = Math.sin(state.phi);
camera.position.set(
state.target.x + state.radius * sinPhi * Math.sin(state.theta),
state.target.y + state.radius * Math.cos(state.phi),
state.target.z + state.radius * sinPhi * Math.cos(state.theta)
);
camera.lookAt(state.target);
}
function resize() {
const width = window.innerWidth;
const height = window.innerHeight;
camera.aspect = width / height;
camera.updateProjectionMatrix();
renderer.setSize(width, height);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
const preset = presets[activePreset];
const scaledRadius = responsiveRadius(preset.radius);
goal.radius = scaledRadius;
}
window.addEventListener("resize", resize);
const clock = new THREE.Clock();
function animate() {
requestAnimationFrame(animate);
const dt = Math.min(clock.getDelta(), 0.05);
const easing = 1 - Math.exp(-dt * 7.5);
state.target.lerp(goal.target, easing);
state.radius = THREE.MathUtils.lerp(state.radius, goal.radius, easing);
state.theta = THREE.MathUtils.lerp(state.theta, goal.theta, easing);
state.phi = THREE.MathUtils.lerp(state.phi, goal.phi, easing);
updateCamera();
updateLabels();
renderer.render(scene, camera);
}
resize();
setPreset("overview", true);
animate();
requestAnimationFrame(() => {
loading.classList.add("hidden");
setTimeout(() => loading.remove(), 600);
});
</script>
</body>
</html>
```