# 3d

Instructions for building ManimGL 3D scenes: camera frame controls, geometric primitives, textured surfaces, and screen-space labels.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/3d.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/3d

## What it does

This rule guides the coding agent through generating 3D visualizations specifically for ManimGL. Unlike ManimCE, it does not rely on a dedicated `ThreeDScene` wrapper, building everything directly inside the standard `Scene` class.

The reference details orientation management via `frame.reorient()`, Euler angle adjustments, and ongoing camera rotation using scene updaters. It provides boilerplate for geometric shapes like `Sphere`, `Cylinder`, `Torus`, and parametric `Surface` meshes, as well as `TexturedSurface` mapping. It also includes `fix_in_frame()` patterns to keep titles stationary during camera movement.

Code produced under these guidelines relies on the ManimGL graphics engine and will break if executed against ManimCE.

## 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/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/3d.md

## When to use it
- configure camera angles and continuous rotation in ManimGL
- generate parametric mathematical surfaces with wireframe meshes
- map image textures onto spherical or curved 3D objects
- keep 2D titles anchored while the 3D scene rotates

## Example prompts
- Build a ManimGL scene with an Earth-textured rotating sphere
- Render a 3D parametric wave surface with ThreeDAxes
- Rotate the camera smoothly while keeping the text header fixed on screen

## Similar
- [manimgl-best-practices](https://affpapa.org/en/nevibecode/skills/manimgl-best-practices.md) — skill · 2600 installs
- [manimce-best-practices](https://affpapa.org/en/nevibecode/skills/manimce-best-practices.md) — skill · 4800 installs
- [blender-animation](https://affpapa.org/en/nevibecode/skills/blender-animation.md) — skill · 2500 installs
- [scenario-blender-animation](https://affpapa.org/en/nevibecode/skills/scenario-blender-animation.md) — skill · 1200 installs
- [blender-image-to-3d](https://affpapa.org/en/nevibecode/skills/blender-image-to-3d.md) — skill · 917 installs
- [blender-facial-shapekeys](https://affpapa.org/en/nevibecode/skills/blender-facial-shapekeys.md) — skill · 548 installs

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

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 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
