# 3d

3d enforces proper Three.js and React Three Fiber conventions for deterministic video rendering in Remotion.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/3d.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/coleam00-3d

## What it does

This instruction set establishes boundaries for generating 3D assets in Remotion projects. It instructs the agent to encapsulate scenes inside `<ThreeCanvas>`, passing explicit frame dimensions alongside standard scene lighting.

Autonomous animations will ruin frame-by-frame exports. Because of that, the `@react-three/fiber` hook `useFrame` is strictly disallowed, requiring all transformations to read directly from `useCurrentFrame()`. Every `<Sequence>` nested inside the canvas must specify `layout="none"`.

The project must have `@remotion/three` installed beforehand to render these components.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/3d.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/3d.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/3d.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/3d.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/3d.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/3d.md

## When to use it
- stop frame flickering caused by unpinned 3D animations
- tie object rotations directly to Remotion frame counts
- configure `<ThreeCanvas>` bounds and lights properly
- reset sequence layouts when nesting components in 3D canvases

## Example prompts
- Create a rotating 3D box inside Remotion using Three.js
- Animate a sphere material based on the current video frame
- Add a Sequence element inside my ThreeCanvas component

## Similar
- [react-three-fiber](https://affpapa.org/en/nevibecode/skills/react-three-fiber.md) — skill · 4300 installs
- [r3f-loaders](https://affpapa.org/en/nevibecode/skills/r3f-loaders.md) — skill · 2100 installs
- [git-city-3d-github-visualization](https://affpapa.org/en/nevibecode/skills/git-city-3d-github-visualization.md) — skill · 1300 installs
- [threejs-r3f](https://affpapa.org/en/nevibecode/skills/threejs-r3f.md) — skill · 1000 installs
- [loading-suspense](https://affpapa.org/en/nevibecode/rules/loading-suspense.md) — rule · ★ 4719 repo stars
- [r3f-animation](https://affpapa.org/en/nevibecode/skills/zebbern-r3f-animation.md) — skill · ★ 4719 repo stars

## Other versions with the same name
- [3d · calesthio](https://affpapa.org/en/nevibecode/rules/3d.md) — ★ 78316 repo stars

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
