Skip to content
Back to skills

Scene 3d

ASecurity

Use for landing pages, portfolios, product and brand sites that benefit from 3D. Builds an immersive scroll-driven three.js world with a relevant hero object. Skip if the user says no 3D.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentsreactnodeperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 21, 2026

npx -y skills add VinayKhandia/no-slop --skill scene-3d --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scene 3d?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scene 3d
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vinaykhandia-scene-3d/badge)](https://www.skillsdirectory.com/skills/vinaykhandia-scene-3d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scene-3d
description: Use for landing pages, portfolios, product and brand sites that benefit from 3D. Builds an immersive scroll-driven three.js world with a relevant hero object. Skip if the user says no 3D.
---

# Scene 3D

Before building, read references/patterns/scroll-world-core.md and adapt it as the base of every scroll-driven 3D page. Do not write the scroll, ticker and camera loop from scratch.

Load after design-taste and motion-craft. Default ON for landing pages and brand sites. Skip for dashboards and form-heavy tools.

## 1. Architecture
- One fixed full-screen canvas behind the page (position fixed, inset 0, pointer-events none; use a separate hit area for drag if needed). HTML content scrolls over it.
- three.js from CDN through an import map. All geometry and textures are made in code. No downloaded models.
- Scroll progress p (0 to 1) from Lenis/ScrollTrigger. Smooth it: s += (p - s) * (1 - Math.exp(-dt * 5)). Drive everything from s.
- Each page section maps to a range of s with its own camera position and object state.

## 2. Immersive environment (required)
Required. Read references/enclosures.md and build a closed enclosure the camera sits inside.

## 3. Hero object (required, must match the product)
Build it procedurally and make it interactive. Examples:
- Cafe: cup and saucer using LatheGeometry (profile points), handle with TorusGeometry arc, coffee surface disc, steam as soft particles or noise sprites, floating beans.
- Sneakers/products: simplified shapes plus shader color changes.
- Music: reactive bars/rings or vinyl.
- Tech/SaaS: floating UI planes, glass cubes, data nodes.
- Real estate/architecture: rotating building blocks, light sweeps.
Interactions (at least 3):
- Drag to rotate with inertia (damped velocity).
- Hover: object tilts toward the pointer, glow or scale up slightly.
- Scroll: object moves between sections, explodes into parts, or changes variant (cup lifts, coffee swirls, beans orbit).
- Click: trigger a short animation (steam burst, color swap).
Add smaller satellite objects (beans, bubbles, shards) with varied depth for parallax.

## 4. Materials and light
Read references/realism.md before building the hero object.

## 5. Performance budget
- renderer.setPixelRatio(Math.min(devicePixelRatio, 1.5)). antialias true.
- Under 60k triangles total. Under 2000 particles (use Points or InstancedMesh).
- No object creation inside the render loop. Reuse vectors and quaternions.
- Pause rendering when the tab is hidden or canvas is not visible.
- Dispose geometries, materials and textures when removed.
- On low power (navigator.hardwareConcurrency <= 4) reduce particles and pixel ratio further.

## 6. Fallbacks
- No WebGL or reduced motion: show a static gradient or CSS-drawn illustration of the object, keep all content usable.
- Loading: show a simple progress state, then fade the canvas in.

## 7. Composition (3D vs text)
- DESIGN.md states, per section, where the focal object sits (left, right, center-bottom, full-bleed) and where the text sits. They never share the same region.
- Hero default: text in one half of the viewport, object in the other. On mobile: object on top, text below. Keep this true at any width by shifting the object or camera with the aspect ratio (camera.setViewOffset or object x based on aspect).
- Body copy, buttons and labels never overlay the object. A single display headline may overlap the object only as a deliberate editorial move, with the object in front.
- Decorative orbits, rings and beans must not cross text blocks. Keep them in the object zone or at screen edges.

## 8. Geometry quality
Read references/realism.md before building geometry.

## 9. Environment visibility
Read references/enclosures.md for environment structure and lighting.

## 10. Style link
The chosen style recipe decides the environment type (tinted room, white cyclorama, patterned maximal room, void with floating shapes, and so on). Follow it.

## 11. Final check
- [ ] Camera is inside an environment that moves/rotates with scroll.
- [ ] Hero object matches the product and is built in code.
- [ ] 3+ interactions (drag, hover, scroll, click).
- [ ] Single shared render ticker, no allocations per frame.
- [ ] Under budget, fallback tested.
- [ ] Sections change camera position/mood as you scroll.
- [ ] Text and 3D object occupy different zones in every section.
- [ ] Curved surfaces are smooth, solid and closed.
- [ ] Environment is clearly visible and palette-based.
- [ ] visual-qa screenshots were reviewed.
- [ ] Enclosure shape is recognizable and textured, with props and changing sections.
- [ ] Realism self-check passed on a 2x zoom screenshot.

Files in this skill

  • SKILL.md4.6 KB
  • references/enclosures.md2.7 KB
  • references/patterns/fluid-scroll.md1.1 KB
  • references/patterns/helix-room.md4.3 KB
  • references/patterns/scroll-world-core.md2.9 KB
  • references/realism.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.