Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/3d.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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.

3d coleam00 3d enforces proper Three.js and React Three Fiber conventions for deterministic video rendering in Remotion. CX Codex +1 ★ 849repo stars manimgl-best-practices adithya-s-k manimgl-best-practices is a Claude Code skill for writing ManimGL scenes. It activates around manimgl requests, CLI use, and code built with ManimGL-specific features. CX Codex +1 2,600installs manimce-best-practices adithya-s-k manimce-best-practices — a skill for Claude Code, Codex and Cursor triggers Manim Community Edition best practices when you mention manim, import from manim import *, or work with Scene, MathTex, Create() classes. CX Codex +1 4,800installs blender-animation RobLe3 blender-animation — a skill that lets your coding agent keyframe, ease and morph objects in Blender through an MCP server. CX Codex +1 2,500installs scenario-blender-animation scenario-labs The scenario-blender-animation skill animates characters and objects in Blender using Python scripts. It handles stepped blocking, curve editing, lip sync, and camera-space motion arcs. CX Codex +1 1,200installs blender-image-to-3d majidmanzarpour The blender-image-to-3d skill builds a game-ready 3D asset in Blender from reference images through gated phases with renders. Runs whenever a user supplies a reference image for modeling. CX Codex +1 917installs blender-facial-shapekeys blender-agent-skills blender-facial-shapekeys is a Claude Code skill that configures facial rigs and shape keys in Blender 5.3 for ARKit 52 and engine export. Runs when preparing 3D character faces for animation or export. CX Codex +1 548installs

From the same set101

The whole set →
threejs-world-generation threejs-world-generation turns a written brief into one continuous Three.js world with terrain, regions, scattered props and a camera flight. Made for cinematic scenes rather than single models. CX Codex +1 ★ 78,316repo stars colors colors is a Claude Code rule covering ManimGL palettes, gradients, and GLSL shading for coloring mathematical animations. CX Codex +1 ★ 78,316repo stars cli The cli rule guides Claude Code through running ManimGL scenes, adjusting render options, and entering interactive debugging. Useful when working with manimgl in a project. CX Codex +1 ★ 78,316repo stars css-marker-patterns The css-marker-patterns rule shows five ways to mark text with plain CSS and GSAP timelines: a marker sweep, wobbly circle, radiating lines, wavy underline, and cross-out. CX Codex +1 ★ 78,316repo stars creation-animations The creation-animations rule explains how to stage object, text, and formula entrances in ManimGL. Use it when a scene needs controlled creation effects. CX Codex +1 ★ 78,316repo stars config Covers how ManimGL reads custom_config.yml: output folders, camera and window options, styles. An agent edits the right keys instead of guessing. CX Codex +1 ★ 78,316repo stars provider-refresh-oct23 provider-refresh-oct23 configures strict API contracts and routing logic for multimedia generation models. Keeps agent calls aligned with provider updates across speech, image, and video backends. CX Codex +1 ★ 78,316repo stars 3d-page-scroll The 3d-page-scroll rule turns a webpage into a tilted 3D card and scrolls its content to chosen sections. It fits product scenes and long page layouts. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open