Camera Basics
The camera determines what is visible in your scene and from what perspective. ManimVTK provides different camera types for different needs.For 2D scenes, the camera is mostly invisible. For 3D scenes, camera control is essential.
Camera Types
2D Camera (Scene)
The default camera for 2D scenes:- Fixed perspective
- Orthographic projection
- Default view: looking down Z-axis
3D Camera (ThreeDScene)
Camera with full 3D control:- Adjustable viewing angle
- Can rotate around objects
- Perspective projection
Moving Camera (MovingCameraScene)
Camera that can zoom and pan in 2D:3D Camera Control
Setting Initial Orientation
- phi: Vertical angle from Z-axis (0° = top, 90° = side)
- theta: Horizontal rotation around Z-axis
- distance: How far the camera is from the origin
- gamma: Camera rotation (tilt)
Animating Camera Movement
Ambient Camera Rotation
Continuous rotation for showcasing 3D objects:- Positive: Counter-clockwise rotation
- Negative: Clockwise rotation
- Typical values: 0.1 to 0.3
Camera at a Specific Point
Point camera at an object:Moving Camera (2D)
Frame Control
Zooming
Following Objects
Camera Presets
Common 3D Views
Reset Camera
Advanced Techniques
Camera Along Path
Combine Zoom and Pan
Smooth Camera Transitions
Best Practices
Choose appropriate views
Choose appropriate views
- 2D content: Use standard
Scene - 3D objects: Use
ThreeDScenewith good phi/theta - Detail work: Use
MovingCameraSceneto zoom
Camera movement timing
Camera movement timing
Start with good orientation
Start with good orientation
Set initial camera position that shows your object well:
Use ambient rotation sparingly
Use ambient rotation sparingly
Camera Configuration
Via Code
Via Config File
Common Patterns
Orbit Around Object
Zoom to Detail
Pan Across Scene
Next Steps
Renderers
Learn about different rendering backends
3D Scenes
ThreeDScene API reference
Examples
See camera control examples
VTK Renderer
VTK rendering for 3D

