/ghibli-threejs:threejs-hud-objective-markersfrom ghibli-threejs
Adds game-style objective markers and a minimal HUD to three.js scenes: off-screen edge badges with chevrons, floating labels, hysteresis, click/key fly-to on an arc, follow/watch camera, and a translucent icon dock with CSS tooltips.
Ships in ghibli-threejs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Shows where the scene's heroes are without cluttering the view:
Stack: three.js WebGLRenderer + OrbitControls, DOM overlay (absolutely positioned buttons, CSS variables for
position/angle). Vanilla; in R3F run stepHeroes from useFrame and keep the DOM outside the canvas.
When a hero (
{{hero A}},{{hero B}}) is far away or out of view, show a game-style objective marker:
- Off-screen: a glass badge pinned to the screen edge with a chevron toward it and a live distance. Behind the camera: the bottom corner on its side.
- On-screen but far: the badge floats over the hero with a pointer, a label and a key hint.
- Close enough to click the hero itself: it steps aside, with hysteresis.
Clicking the marker (or pressing its key) flies the camera there on an arc that climbs with the distance, then follows (hero A) or settles into the orbit (hero B). Hide the markers during loading, the tour, reading and mid-flight.
Hide the title and camera-view panels (keep the number keys). Shrink the toggles into a small translucent icon dock bottom-left that brightens on hover and shows each label as a tooltip. Replace the signature pill with a plain
{{domain}}wordmark, bottom-right. The visitor should see the whole scene.
references/hero-markers.js, references/hero-markers.css)ahead = dot(p − camPos, camDir) > 0; project to screen; onScreen = ahead and inside the inset rectangle
(insets top/right/bottom/left ≈ 64/70/104/64 px — keep them clear of the HUD dock and wordmark).s = min((W − ir − cx)/|dx| or (cx − il)/|dx|, (H − ib − cy)/|dy| or (cy − it)/|dy|); chevron angle atan2(dy, dx).p.applyMatrix4(camera.matrixWorldInverse).x) and pin
to that bottom corner (chevron at .3π / .7π). Mirroring the projection instead sends it to the bottom centre,
right over the thing you're following.1 − e^(−16·dt); toggle the .edge class only when the state changes;
update distance text at 4 Hz (m below 1 km, else x.x km). Nudge two overlapping edge badges apart (58 px).--x --y --a and transform: translate3d(var(--x), var(--y), 0); edge badges collapse
to the icon and expand the label on hover/focus. Respect prefers-reduced-motion.duration = clamp(1.3 + d/70, 1.3, 5) s, arc = min(38 m, 0.2·d).arc·sin(πu) on y. Gaze eases faster: 1 − (1 − 1.25u)³, so the view
turns toward the destination early.dest() → { pos, tgt }) so a moving boat is chased all the way.'flight' while flying; controls start event (visitor grabs the camera) cancels.references/hud-dock.css)stroke:currentColor) plus an empty <i>, with the label in data-label +
aria-label; tooltip via ::before { content: attr(data-label) }. A "tap to start" suffix becomes a pulsing
ring on ::after.<hr> separators.:hover / :focus-within.--glass, --text, --gold …) so the dock, the markers and every other
pill change together at night — see threejs-dreamy-glass-hud for the tokens and the rest of the HUD's behaviour.body.loading, body.reading, body.touring).hidden loses to any author display: rule: #views { display:flex } kept the panel visible. Add
#views[hidden] { display:none }.align-items:flex-start.// is not a CSS comment. A trailing // … after a rule swallows the next selector, silently dropping that rule
(a HUD fade transition was lost this way). Use /* … */.input/textarea.#toggles > button. A popover placed inside the dock (so it can anchor to it)
otherwise inherits the round 36 px shape and a tooltip on each of its rows.innerHTML, not the button's textContent, or the
button's other children (the "on" dot) are deleted.threejs-boat-buoyancy-steering (follow camera, lane loop) · threejs-camera-guided-tour · threejs-object-interaction · threejs-cinematic-loading-screen · threejs-open-world-streaming · threejs-dreamy-glass-hud (glass tokens, night-aware HUD, whispers, auto-hide)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threejs, hud, objective-markers, waypoints, camera-fly-to, off-screen-indicators
npx claudepluginhub nicksonthc/ghibli-threejs --plugin ghibli-threejs31 skills in this plugin
/threejs-blender-glb-pipelineBuilds a reference-image-driven asset pipeline from headless Blender to GLB for a three.js scene — an asset contract (units, axes, grounding, required mesh/material names, budgets, attachment numbers), one parallel subagent per asset group writing craft_<slug>.py generators, preview renders compared against the reference, measured-bounding-box placement in the web scene, Draco compression, and a scored asset quality pass. Use when the user has a reference picture and wants a 3D scene from it, asks to model props/trees/characters in Blender for three.js, export GLBs, fix glTF export issues (vertex-colour alpha, UV flip, axes, custom normals), compress models, or rate and improve every asset in a scene./threejs-boat-buoyancy-steeringFloats a boat (or any buoyant prop) on three.js water with Gerstner waves generated from one JS table that feeds both the GLSL vertex shader and a CPU waveHeight(), four-probe heave/pitch/roll damped springs, an arc-length drift lane that bends round rocks, click-to-steer W/A/S/D rowing with momentum and drag, an autopilot that pursues the lane back, and a chase camera that keeps the orbit. Use when the user wants a drifting or steerable boat, buoyancy, objects bobbing on waves, Gerstner waves on a river/lake, a boat autopilot, or a follow/chase camera behind a vehicle on water.