Skip to content

WebGL Cursor

Mohammed Sahil edited this page Nov 21, 2026 · 3 revisions

WebGL Spatial Cursor Architecture

Odyssey implements a continuous, hardware-accelerated Three.js liquid metal chrome blob cursor that dynamically recalibrates physics parameters based on the active client route.


1. Pipeline Lifecycle

flowchart TD
    Route["Route Navigation Event<br/>useLocation Hook"]
    Resolver["Configuration Resolver<br/>getCursorConfig(pathname)"]
    Params["Physics & Shader Manifest<br/>Color &bull; Viscosity &bull; Droplets &bull; Morph"]
    Renderer["Three.js Blob Cursor Component<br/>Hardware-Accelerated WebGL Canvas"]

    Route --> Resolver
    Resolver --> Params
    Params --> Renderer
Loading

2. Route-to-Cursor Specification

Route Atmospheric Domain Hex Code Physics Parameters
/ Retro Slate Intro #FF70A6 (Brain Pink) size: 42, wobble: 0.8, stretch: 0.4
/student Basecamp Requisition #FF70A6 (Brain Pink Chrome) High wobble (0.85), 7 droplet splashes
/printing Print Laboratory #00E599 (Electric Mint) Ultra-reflective pearl chrome finish
/writing Writing Weaponry Crypt #45B89E (Seafoam Jade) Low lag, crisp reactive trailing
/paper Paper & Reams Crypt #FF3B47 (Electric Crimson) High-contrast crimson chrome
/payment Gothic Cemetery Midnight #FF2A1B (Fiery Ember Chrome) Heavy morph (0.35), 8-droplet burst

3. Anti-Selection Protection

Rapid multi-clicking to burst cursor droplets triggers zero browser text selection glitches:

  • BlobCursor.css applies global user-select: none.
  • BlobCursor.jsx intercepts non-input e.detail > 1 mousedown events to prevent accidental UI highlighting.

Clone this wiki locally