Skip to content

User Guide Scene Navigation

Sudharsan Selvaraj edited this page Jul 20, 2026 · 1 revision

Scene Navigation

Overview

Scene Navigation refers to how TokenPrint transitions between different visual modes and how the camera moves between points of interest within those modes.

Why it matters

A clunky transition between exploring static tensors and watching live inference can break the user's mental model. Smooth scene navigation ensures you maintain spatial awareness of the Transformer Stack.

How TokenPrint implements it

TokenPrint uses React to mount and unmount different Scene components inside the main AppShell canvas based on the selected mode in the Top Bar.

  • TensorCloud for Architecture mode.
  • GenerationScene for Live Inference.
  • WalkthroughScene for the guided tour.

Camera navigation is handled by easing functions that interpolate the camera's position and look-at target over time.

Modes

  1. Architecture: Free-roam. The camera defaults to an overview of the point cloud.
  2. Generation: Automated follow-mode. The camera glides down the TransformerStack as the PlaybackEngine advances through the layers.
  3. Walkthrough: Chapter-gated. As you click "Next Chapter", the camera glides to specific curated locations (e.g., zooming in on the SwiGLU funnel or the KV Cache).

Handling Context Loss

If you switch tabs or stress the GPU, WebGL may drop the rendering context. TokenPrint's SceneLoader.tsx acts as a safety boundary:

  • It probes for WebGL availability.
  • It automatically remounts a fresh canvas upon context loss.
  • It displays a readable fallback message rather than crashing the browser.

Diagram

flowchart TD
    TopBar[Mode Selection] --> Store[Zustand Mode State]
    Store --> Router{Mount Scene}
    
    Router -- Architecture --> TensorCloud[Mount TensorCloud]
    Router -- Generation --> GenerationScene[Mount GenerationScene]
    Router -- Walkthrough --> WalkthroughScene[Mount WalkthroughScene]
    
    GenerationScene --> Stack[Mount TransformerStack]
    WalkthroughScene --> Stack
Loading

Related pages

Further reading

Navigation

Previous Home Next
Timeline Home Transformer Concepts

Clone this wiki locally