Repository navigation
User Guide Camera Controls
The 3D Canvas in TokenPrint uses an Orbiting Camera system to let you explore the model geometry from any angle, combined with an automated Follow Camera during live execution.
Transformer stacks are deep. A static 2D view cannot adequately display the internal structures of a 24-layer model. Giving the user full spatial control ensures no operation is hidden.
TokenPrint relies on React Three Fiber and OrbitControls.
However, during Live Inference or Walkthrough mode, TokenPrint engages a cinematic Follow Camera that smoothly eases between active layers to ensure the current computation is always in frame.
- Left Click & Drag: Orbit (rotate) around the current target.
- Right Click & Drag: Pan (move the target up/down/left/right).
- Scroll Wheel: Zoom in and out.
-
F11: Toggle Fullscreen canvas. -
F10: Toggle Developer Data / LOD (Level of Detail). -
Spacebar: Play / Pause the Live Inference timeline. -
J/K: Step Backward / Forward one operation in the timeline.
During a generation trace:
- The
PlaybackEnginedetermines the active layer. - The Camera system automatically calculates the 3D anchor point for that layer.
- The camera smoothly glides to the new anchor point.
- Overriding: If you click and drag to orbit, you break the follow mode. A "Recenter" button will appear in the HUD to re-engage automatic following.
flowchart LR
User[Mouse/Keyboard Input] --> Orbit[OrbitControls]
Orbit --> Camera
Playback[Playback Engine] --> Anchor[Calculate Layer Anchor]
Anchor --> Glider[Camera Easing Function]
Glider --> Camera
User -.->|Breaks| Glider
| Previous | Home | Next |
|---|---|---|
| Tensor Inspector | Home | HUD |
TokenPrint Wiki | Home | Getting Started | User Guide | Concepts | Architecture | API | GitHub
TokenPrint is an interactive 3D visualization platform for exploring transformer architectures, tensors, and real-time LLM inference.
- User Guide
- Architecture Explorer
- Live Inference
- Tensor Inspector
- Camera Controls
- HUD
- Timeline
- Scene Navigation
- Transformer Concepts
- Tokenization
- Embeddings
- Positional Encoding
- RoPE
- Multi-Head Attention
- KV Cache
- LayerNorm
- Feed Forward Network
- Residual Connections
- Logits
- Softmax
- Sampling
- Autoregressive Generation
- Visualization System
- Scene Graph
- Geometry
- Materials
- Animation System
- Color Mapping
- Camera System
- Interaction Model
- Architecture
- Overall Architecture
- Frontend
- Backend
- WebSocket Protocol
- Data Pipeline
- Renderer
- Event System