3d · calesthio — Claude Code rule: rotating cameras in textured 3D scenes
Instructions for building ManimGL 3D scenes: camera frame controls, geometric primitives, textured surfaces, and screen-space labels.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/3d.mdWhat 3d 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.
What it helps with
- 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 for the agent
- 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
How to install 3d
Manually: put the files in place
.claude/rules/3d.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/3d.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/3d.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/3d.mdManually: put the files in place
.clinerules/3d.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about 3d
How to install 3d in Claude Code?
Add the rule file to your project repository at .claude/rules/3d.md.
What does the 3d rule do?
It instructs your assistant to write valid 3D animation scripts tailored to ManimGL camera frames and primitive classes.
Does ManimGL require ThreeDScene?
No, ManimGL handles 3D elements inside the standard Scene class by managing self.camera.frame directly.
Similar IDE rules
All IDE rules for Game dev and 3D: Unity, Unreal, Godot, Blender →3d by other authors comes first.