TCK Tractography Viewer — VS Code Extension
🧠 Click a .tck file → see it in 3D. Just like NIfTI viewers, but for tractography.

Features
- One-click viewing — Open any
.tck file from the VS Code file explorer
- Interactive 3D — Rotate, zoom, and pan with orbit controls (Three.js)
- Directional RGB coloring — Red = Left-Right, Green = Anterior-Posterior, Blue = Superior-Inferior
- Multiple color modes — Directional, length-based (viridis colormap), or uniform
- Preset views — Superior, Anterior, Left, Right, Reset
- Adjustable line width — Real-time slider
- Performance — Handles hundreds of thousands of streamlines via subsampling
- HUD — File name, streamline count, FPS counter
- Configurable — Max streamlines, default color mode, background color, line width via VS Code settings
Usage
- Open a folder containing
.tck files in VS Code
- Click on any
.tck file in the Explorer
- The 3D viewer opens automatically
Or use the command palette: TCK Viewer: Open TCK File
Controls
| Action |
Mouse |
| Rotate |
Left-click + drag |
| Pan |
Right-click + drag |
| Zoom |
Scroll wheel |
- Color mode: Directional / Length / Uniform
- Views: S (superior), A (anterior), L (left), R (right), ⟲ (reset)
- Line width: Adjustable slider
Settings
| Setting |
Default |
Description |
tckViewer.maxStreamlines |
50000 |
Max streamlines to display |
tckViewer.colorMode |
directional |
Default color mode |
tckViewer.backgroundColor |
#1a1a2e |
Viewer background color |
tckViewer.lineWidth |
1.5 |
Default line width |
- MRtrix3
.tck — Standard tractography format from MRtrix3, produced by tckgen
Requirements
- VS Code ≥ 1.80.0
- No external dependencies needed at runtime
License
MIT
| |