Prompt specification
Build or customize the Three.js 3D scene "Transport amphora nested in a rack" 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: Transport amphora nested in a rack
Category: Art & Culture · Style: Procedural Solid / Shader 3D
License: MIT · Reference: https://three3d.app/scene/transport-amphora-nested-in-a-rack-x2605
Scene Description Prompt:
Transport amphora nested in a rack. Model a referenced amphora held in a supporting wooden rack. Make the pointed base and securing contacts visible so the need for storage support is clear. Please build this with Three.js from cdnjs in one self-contained HTML file, using stylized solid shapes.
Working Three.js Starter (transport-amphora-nested-in-a-rack-x2605):
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Amphora in a Securing Rack</title>
<style>
:root {
--ink: #2f2923;
--muted: #6d6257;
--paper: rgba(247, 243, 235, 0.91);
--line: rgba(62, 48, 37, 0.18);
--accent: #a8502e;
--contact: #d4aa62;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #d9d3c7;
color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system,
BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#scene {
position: fixed;
inset: 0;
}
canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
cursor: grab;
}
canvas:active {
cursor: grabbing;
}
.ui {
position: fixed;
inset: 0;
pointer-events: none;
}
.topbar {
position: absolute;
top: 24px;
left: 28px;
right: 28px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
}
.eyebrow {
margin: 0 0 7px;
color: var(--accent);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.2em;
text-transform: uppercase;
}
h1 {
margin: 0;
max-width: 540px;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(27px, 4vw, 47px);
font-weight: 500;
line-height: 0.98;
letter-spacing: -0.035em;
}
.subtitle {
margin: 10px 0 0;
color: var(--muted);
font-size: 13px;
letter-spacing: 0.02em;
}
.controls {
display: flex;
gap: 8px;
pointer-events: auto;
}
button {
border: 1px solid rgba(61, 48, 38, 0.2);
border-radius: 999px;
padding: 10px 15px;
background: rgba(248, 244, 237, 0.84);
color: var(--ink);
font: inherit;
font-size: 12px;
font-weight: 650;
cursor: pointer;
backdrop-filter: blur(12px);
box-shadow: 0 5px 20px rgba(61, 48, 38, 0.08);
transition:
background 160ms ease,
transform 160ms ease;
}
button:hover {
background: rgba(255, 252, 246, 0.98);
transform: translateY(-1px);
}
button[aria-pressed="true"] {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.legend {
position: absolute;
left: 28px;
bottom: 26px;
width: min(340px, calc(100vw - 56px));
padding: 18px 19px 17px;
border: 1px solid var(--line);
border-radius: 14px;
background: var(--paper);
box-shadow: 0 16px 45px rgba(56, 43, 32, 0.11);
backdrop-filter: blur(14px);
}
.legend h2 {
margin: 0 0 8px;
color: var(--accent);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.17em;
text-transform: uppercase;
}
.legend p {
margin: 0;
color: #5f554c;
font-size: 12px;
line-height: 1.55;
}
.legend-row {
display: flex;
align-items: center;
gap: 9px;
margin-top: 11px;
color: #594e44;
font-size: 11px;
}
.swatch {
width: 10px;
height: 10px;
flex: 0 0 auto;
border-radius: 3px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.swatch.toe {
background: #b65d37;
border-radius: 50% 50% 50% 0;
transform: rotate(-45deg);
}
.swatch.contact {
background: var(--contact);
}
.swatch.frame {
background: #70452f;
}
.hint {
position: absolute;
right: 28px;
bottom: 27px;
padding: 9px 13px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(247, 243, 235, 0.76);
color: #665b51;
font-size: 11px;
backdrop-filter: blur(10px);
}
.callout {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
opacity: 0;
transition: opacity 120ms ease;
}
.callout.visible {
opacity: 1;
}
.callout .dot {
position: absolute;
left: -5px;
top: -5px;
width: 10px;
height: 10px;
border: 2px solid #fffaf0;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 2px 8px rgba(47, 38, 31, 0.28);
}
.callout .leader {
position: absolute;
left: 0;
top: 0;
height: 1px;
background: rgba(73, 55, 42, 0.62);
transform-origin: left center;
}
.callout .copy {
position: absolute;
min-width: 142px;
padding: 8px 11px;
border: 1px solid rgba(61, 48, 38, 0.16);
border-radius: 9px;
background: rgba(250, 247, 240, 0.94);
box-shadow: 0 8px 25px rgba(56, 43, 32, 0.12);
transform: translate(-50%, -50%);
white-space: nowrap;
backdrop-filter: blur(10px);
}
.callout b {
display: block;
margin-bottom: 2px;
color: #3e332a;
font-size: 11px;
}
.callout small {
display: block;
color: #75685d;
font-size: 10px;
}
#loading {
position: fixed;
inset: 0;
z-index: 10;
display: grid;
place-items: center;
background: #d9d3c7;
color: #5f5145;
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
transition: opacity 450ms ease;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
@media (max-width: 760px) {
.topbar {
top: 18px;
left: 18px;
right: 18px;
}
h1 {
font-size: 30px;
}
.subtitle {
display: none;
}
.controls {
flex-direction: column;
}
button {
padding: 8px 11px;
font-size: 10px;
}
.legend {
left: 18px;
bottom: 18px;
width: min(285px, calc(100vw - 36px));
padding: 14px;
}
.legend p {
font-size: 11px;
}
.legend-row {
display: none;
}
.hint {
display: none;
}
.callout {
display: none;
}
}
</style>
</head>
<body>
<div id="scene"></div>
<div class="ui">
<div class="topbar">
<div>
<p class="eyebrow">Museum storage study</p>
<h1>Amphora in a<br />securing rack</h1>
<p class="subtitle">
Pointed-foot vessel supported by a padded timber collar
</p>
</div>
<div class="controls">
<button id="reset" type="button">Reset view</button>
<button
id="spin"
type="button"
aria-pressed="false"
>
Auto orbit
</button>
</div>
</div>
<div class="legend">
<h2>Why the rack is necessary</h2>
<p>
The amphora’s narrow toe cannot carry a stable load on a flat
surface. The lower padded hoop bears the vessel while leaving
the pointed toe visible and clear of the rack base.
</p>
<div class="legend-row">
<span class="swatch toe"></span>
Pointed, unsupported toe
</div>
<div class="legend-row">
<span class="swatch contact"></span>
Visible securing pads
</div>
<div class="legend-row">
<span class="swatch frame"></span>
Rigid wooden support frame
</div>
</div>
<div class="hint">Drag to orbit · Scroll to zoom · Double-click to reset</div>
<div class="callout" id="callout-toe">
<span class="dot"></span>
<span class="leader"></span>
<div class="copy">
<b>Pointed toe</b>
<small>Visible and clear below the vessel</small>
</div>
</div>
<div class="callout" id="callout-hoop">
<span class="dot"></span>
<span class="leader"></span>
<div class="copy">
<b>Padded retaining hoop</b>
<small>Carries the vessel’s weight</small>
</div>
</div>
<div class="callout" id="callout-collar">
<span class="dot"></span>
<span class="leader"></span>
<div class="copy">
<b>Upper guide collar</b>
<small>Prevents lateral movement</small>
</div>
</div>
</div>
<div id="loading">Preparing the storage rack…</div>
<script type="module">
import * as THREE from
"https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js";
const sceneHost = document.getElementById("scene");
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.04;
sceneHost.appendChild(renderer.domElement);
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xd9d3c7);
scene.fog = new THREE.Fog(0xd9d3c7, 11, 24);
const camera = new THREE.PerspectiveCamera(
38,
window.innerWidth / window.innerHeight,
0.05,
60
);
const target = new THREE.Vector3(0, 1.73, 0);
const home = {
azimuth: 0.64,
polar: 1.31,
radius: 8.25
};
const orbit = { ...home };
function updateCamera() {
const sinPolar = Math.sin(orbit.polar);
camera.position.set(
target.x + orbit.radius * sinPolar * Math.sin(orbit.azimuth),
target.y + orbit.radius * Math.cos(orbit.polar),
target.z + orbit.radius * sinPolar * Math.cos(orbit.azimuth)
);
camera.lookAt(target);
}
updateCamera();
// Lighting
const hemisphere = new THREE.HemisphereLight(
0xfff8e9,
0x857568,
2.25
);
scene.add(hemisphere);
const keyLight = new THREE.DirectionalLight(
0xfff0d7,
3.25
);
keyLight.position.set(-4.5, 8.5, 5.5);
keyLight.castShadow = true;
keyLight.shadow.mapSize.set(2048, 2048);
keyLight.shadow.camera.left = -5;
keyLight.shadow.camera.right = 5;
keyLight.shadow.camera.top = 6;
keyLight.shadow.camera.bottom = -3;
keyLight.shadow.camera.near = 1;
keyLight.shadow.camera.far = 20;
keyLight.shadow.bias = -0.0004;
keyLight.shadow.normalBias = 0.025;
scene.add(keyLight);
const fillLight = new THREE.DirectionalLight(
0xc8d8df,
1.25
);
fillLight.position.set(5, 4, -5);
scene.add(fillLight);
const rimLight = new THREE.PointLight(
0xffbd78,
16,
10,
2
);
rimLight.position.set(-2.8, 3.8, -2.6);
scene.add(rimLight);
// Materials
const wood = new THREE.MeshStandardMaterial({
color: 0x7c4b31,
roughness: 0.82,
metalness: 0.0
});
const woodLight = new THREE.MeshStandardMaterial({
color: 0xa76b42,
roughness: 0.78,
metalness: 0.0
});
const woodDark = new THREE.MeshStandardMaterial({
color: 0x513425,
roughness: 0.9,
metalness: 0.0
});
const terracotta = new THREE.MeshStandardMaterial({
color: 0xb85d37,
roughness: 0.84,
metalness: 0.0
});
const terracottaDark = new THREE.MeshStandardMaterial({
color: 0x713d2c,
roughness: 0.9,
metalness: 0.0
});
const leather = new THREE.MeshStandardMaterial({
color: 0xd4aa62,
roughness: 0.88,
metalness: 0.0
});
const brass = new THREE.MeshStandardMaterial({
color: 0xb38a42,
roughness: 0.38,
metalness: 0.55
});
const floorMaterial = new THREE.MeshStandardMaterial({
color: 0xcfc8bb,
roughness: 0.97,
metalness: 0.0
});
function addBox(size, position, material, parent = scene) {
const mesh = new THREE.Mesh(
new THREE.BoxGeometry(size[0], size[1], size[2]),
material
);
mesh.position.set(position[0], position[1], position[2]);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
function addBeamBetween(a, b, thickness, material, parent = scene) {
const start = new THREE.Vector3(...a);
const end = new THREE.Vector3(...b);
const direction = new THREE.Vector3().subVectors(end, start);
const length = direction.length();
const mesh = new THREE.Mesh(
new THREE.BoxGeometry(thickness, length, thickness),
material
);
mesh.position.copy(start).add(end).multiplyScalar(0.5);
mesh.quaternion.setFromUnitVectors(
new THREE.Vector3(0, 1, 0),
direction.normalize()
);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
function addHorizontalTorus(
radius,
tube,
position,
material,
parent = scene
) {
const mesh = new THREE.Mesh(
new THREE.TorusGeometry(radius, tube, 12, 72),
material
);
mesh.rotation.x = Math.PI / 2;
mesh.position.set(position[0], position[1], position[2]);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
// Floor
const floor = new THREE.Mesh(
new THREE.PlaneGeometry(40, 40),
floorMaterial
);
floor.rotation.x = -Math.PI / 2;
floor.position.y = -0.005;
floor.receiveShadow = true;
scene.add(floor);
// Wooden rack
const rack = new THREE.Group();
rack.name = "Timber support rack";
scene.add(rack);
const sideX = 1.36;
// Base runners
for (const x of [-sideX, sideX]) {
addBox([0.22, 0.22, 2.15], [x, 0.14, 0], wood, rack);
for (const z of [-0.92, 0.92]) {
addBox(
[0.34, 0.08, 0.34],
[x, 0.04, z],
woodDark,
rack
);
}
}
// Base crossmembers
for (const z of [-0.92, 0.92]) {
addBox([2.94, 0.22, 0.2], [0, 0.14, z], woodLight, rack);
}
// Uprights
for (const x of [-sideX, sideX]) {
addBox(
[0.23, 3.34, 0.23],
[x, 1.91, 0],
wood,
rack
);
// Small darker edge strips suggest timber grain.
addBox(
[0.035, 2.92, 0.012],
[x + 0.068, 1.92, 0.119],
woodDark,
rack
);
}
// Top frame
addBox([2.95, 0.23, 0.23], [0, 3.59, 0], woodLight, rack);
for (const x of [-sideX, sideX]) {
addBox([0.23, 0.23, 2.15], [x, 3.59, 0], wood, rack);
}
// Rear diagonal braces; placed behind the vessel for clear visibility.
addBeamBetween(
[-sideX, 0.32, -0.38],
[sideX, 3.42, -0.38],
0.12,
woodDark,
rack
);
addBeamBetween(
[sideX, 0.32, -0.38],
[-sideX, 3.42, -0.38],
0.12,
woodDark,
rack
);
// Amphora body
const amphora = new THREE.Group();
amphora.name = "Stylized pointed-foot amphora";
amphora.position.y = 0.34;
scene.add(amphora);
const profile = [
[0.00, 0.00],
[0.055, 0.08],
[0.11, 0.18],
[0.18, 0.32],
[0.30, 0.47],
[0.48, 0.63],
[0.68, 0.80],
[0.84, 1.00],
[0.93, 1.22],
[0.96, 1.42],
[0.92, 1.63],
[0.82, 1.80],
[0.66, 1.97],
[0.48, 2.13],
[0.35, 2.27],
[0.32, 2.40],
[0.32, 2.72],
[0.40, 2.80],
[0.43, 2.92],
[0.43, 3.08],
[0.37, 3.12]
].map(([x, y]) => new THREE.Vector2(x, y));
const body = new THREE.Mesh(
new THREE.LatheGeometry(profile, 72),
terracotta
);
body.castShadow = true;
body.receiveShadow = true;
amphora.add(body);
// Incised decorative bands
addHorizontalTorus(
0.955,
0.017,
[0, 1.40, 0],
terracottaDark,
amphora
);
addHorizontalTorus(
0.943,
0.013,
[0, 1.50, 0],
terracottaDark,
amphora
);
addHorizontalTorus(
0.686,
0.015,
[0, 1.955, 0],
terracottaDark,
amphora
);
addHorizontalTorus(
0.326,
0.014,
[0, 2.57, 0],
terracottaDark,
amphora
);
// Mouth and lip
const mouth = new THREE.Mesh(
new THREE.CylinderGeometry(0.305, 0.305, 0.022, 48),
terracottaDark
);
mouth.position.y = 3.105;
amphora.add(mouth);
addHorizontalTorus(
0.395,
0.052,
[0, 3.105, 0],
terracotta,
amphora
);
// Handles
function addHandle(side) {
const curve = new THREE.CatmullRomCurve3([
new THREE.Vector3(side * 0.34, 2.68, 0),
new THREE.Vector3(side * 0.67, 2.72, 0),
new THREE.Vector3(side * 0.97, 2.55, 0),
new THREE.Vector3(side * 1.03, 2.28, 0),
new THREE.Vector3(side * 0.91, 2.05, 0),
new THREE.Vector3(side * 0.70, 1.94, 0)
]);
const handle = new THREE.Mesh(
new THREE.TubeGeometry(curve, 44, 0.075, 10, false),
terracotta
);
handle.castShadow = true;
handle.receiveShadow = true;
amphora.add(handle);
}
addHandle(1);
addHandle(-1);
// Lower load-bearing and retaining hoop
const lowerHoopY = 1.03;
const lowerHoopRadius = 0.79;
addHorizontalTorus(
lowerHoopRadius,
0.065,
[0, lowerHoopY, 0],
woodDark,
rack
);
// Brackets connect the hoop to the rigid uprights.
for (const side of [-1, 1]) {
addBeamBetween(
[side * lowerHoopRadius, lowerHoopY, 0],
[side * 1.25, lowerHoopY, 0],
0.15,
wood,
rack
);
}
// Four clearly visible leather contact pads.
addBox(
[0.32, 0.17, 0.13],
[0, lowerHoopY, 0.68],
leather,
rack
);
addBox(
[0.32, 0.17, 0.13],
[0, lowerHoopY, -0.68],
leather,
rack
);
for (const side of [-1, 1]) {
addBox(
[0.13, 0.17, 0.32],
[side * 0.68, lowerHoopY, 0],
leather,
rack
);
}
// Brass fasteners emphasize the physical contact points.
const frontBolt = new THREE.Mesh(
new THREE.CylinderGeometry(0.027, 0.027, 0.022, 16),
brass
);
frontBolt.rotation.x = Math.PI / 2;
frontBolt.position.set(0, lowerHoopY, 0.747);
frontBolt.castShadow = true;
rack.add(frontBolt);
for (const side of [-1, 1]) {
const sideBolt = new THREE.Mesh(
new THREE.CylinderGeometry(0.027, 0.027, 0.022, 16),
brass
);
sideBolt.rotation.z = Math.PI / 2;
sideBolt.position.set(side * 0.747, lowerHoopY, 0);
sideBolt.castShadow = true;
rack.add(sideBolt);
}
// Narrow upper guide collar for anti-sway support.
const upperCollarY = 2.73;
const upperCollarRadius = 0.43;
addHorizontalTorus(
upperCollarRadius,
0.045,
[0, upperCollarY, 0],
wood,
rack
);
for (const side of [-1, 1]) {
addBeamBetween(
[side * upperCollarRadius, upperCollarY, 0],
[side * 1.25, upperCollarY, 0],
0.095,
woodLight,
rack
);
addBox(
[0.08, 0.14, 0.18],
[side * 0.35, upperCollarY, 0],
leather,
rack
);
}
addBox(
[0.18, 0.14, 0.08],
[0, upperCollarY, 0.35],
leather,
rack
);
addBox(
[0.18, 0.14, 0.08],
[0, upperCollarY, -0.35],
leather,
rack
);
// Callout anchors
const callouts = [
{
element: document.getElementById("callout-toe"),
point: new THREE.Vector3(0, 0.40, 0.07),
dx: -150,
dy: 8
},
{
element: document.getElementById("callout-hoop"),
point: new THREE.Vector3(0.79, lowerHoopY, 0.15),
dx: 84,
dy: 15
},
{
element: document.getElementById("callout-collar"),
point: new THREE.Vector3(0.43, upperCollarY, 0),
dx: 92,
dy: -20
}
];
const projected = new THREE.Vector3();
function updateCallouts() {
const width = window.innerWidth;
const height = window.innerHeight;
for (const item of callouts) {
projected.copy(item.point).project(camera);
const visible =
projected.z > -1 &&
projected.z < 1 &&
Math.abs(projected.x) < 1.08 &&
Math.abs(projected.y) < 1.08;
item.element.classList.toggle("visible", visible);
if (!visible) continue;
const screenX = (projected.x * 0.5 + 0.5) * width;
const screenY = (-projected.y * 0.5 + 0.5) * height;
let dx = item.dx;
let dy = item.dy;
const copyWidth = 175;
if (screenX + dx - copyWidth / 2 < 12) {
dx = 12 + copyWidth / 2 - screenX;
}
if (screenX + dx + copyWidth / 2 > width - 12) {
dx = width - 12 - copyWidth / 2 - screenX;
}
dy = THREE.MathUtils.clamp(dy, -75, 75);
item.element.style.left = `${screenX}px`;
item.element.style.top = `${screenY}px`;
const copy = item.element.querySelector(".copy");
const leader = item.element.querySelector(".leader");
copy.style.left = `${dx}px`;
copy.style.top = `${dy}px`;
const length = Math.hypot(dx, dy);
const angle = Math.atan2(dy, dx) * 180 / Math.PI;
leader.style.width = `${length}px`;
leader.style.transform = `rotate(${angle}deg)`;
}
}
// Custom camera interaction: no external controls addon.
let dragging = false;
let lastPointerX = 0;
let lastPointerY = 0;
const canvas = renderer.domElement;
canvas.addEventListener("pointerdown", (event) => {
if (event.button !== 0) return;
dragging = true;
lastPointerX = event.clientX;
lastPointerY = event.clientY;
canvas.setPointerCapture(event.pointerId);
});
canvas.addEventListener("pointermove", (event) => {
if (!dragging) return;
const dx = event.clientX - lastPointerX;
const dy = event.clientY - lastPointerY;
lastPointerX = event.clientX;
lastPointerY = event.clientY;
orbit.azimuth -= dx * 0.006;
orbit.polar = THREE.MathUtils.clamp(
orbit.polar - dy * 0.005,
0.68,
1.48
);
});
function endDrag(event) {
dragging = false;
if (canvas.hasPointerCapture(event.pointerId)) {
canvas.releasePointerCapture(event.pointerId);
}
}
canvas.addEventListener("pointerup", endDrag);
canvas.addEventListener("pointercancel", endDrag);
canvas.addEventListener(
"wheel",
(event) => {
event.preventDefault();
orbit.radius = THREE.MathUtils.clamp(
orbit.radius * Math.exp(event.deltaY * 0.001),
4.7,
12.0
);
},
{ passive: false }
);
function resetView() {
orbit.azimuth = home.azimuth;
orbit.polar = home.polar;
orbit.radius = home.radius;
}
canvas.addEventListener("dblclick", resetView);
document.getElementById("reset").addEventListener("click", resetView);
const spinButton = document.getElementById("spin");
let spinning = false;
spinButton.addEventListener("click", () => {
spinning = !spinning;
spinButton.setAttribute("aria-pressed", String(spinning));
spinButton.textContent = spinning ? "Stop orbit" : "Auto orbit";
});
window.addEventListener("resize", () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
});
// Render loop
const clock = new THREE.Clock();
function animate() {
const delta = Math.min(clock.getDelta(), 0.05);
if (spinning && !dragging) {
orbit.azimuth += delta * 0.18;
}
updateCamera();
updateCallouts();
renderer.render(scene, camera);
requestAnimationFrame(animate);
}
requestAnimationFrame(() => {
document.getElementById("loading").classList.add("hidden");
animate();
});
</script>
</body>
</html>
```