3D rendering requires WebGPU support. Make sure you’re running on a system with WebGPU available (most modern systems support this through Dawn/wgpu).
Quick Start
Render a simple 3D cube:ThreeCliRenderer
TheThreeCliRenderer bridges Three.js with OpenTUI’s terminal rendering.
Configuration
Rendering
Materials and Lighting
Material Types
- MeshPhongMaterial
- MeshBasicMaterial
- MeshStandardMaterial
Lighting
Geometries
Primitive Shapes
Post-Processing Effects
Apply effects to rendered frames:Available Effects
applyScanlines(buffer, intensity)- CRT scanline effectapplyGrayscale(buffer)- Convert to grayscaleapplySepia(buffer)- Sepia toneapplyInvert(buffer)- Invert colorsapplyNoise(buffer, amount)- Add noiseapplyChromaticAberration(buffer, offset)- RGB shiftapplyAsciiArt(buffer)- ASCII art filterBloomEffect- Glow effectBlurEffect- Gaussian blurVignetteEffect- Edge darkeningBrightnessEffect- Adjust brightnessDistortionEffect- Warp/distort image
Textures
Loading Textures
Normal Maps
Animation
Combine with OpenTUI’s timeline system:Complete Example: Rotating Cube
Performance Tips
Optimize Geometry
Optimize Geometry
Use lower polygon counts for terminal rendering:
Limit Post-Processing
Limit Post-Processing
Some effects are expensive. Use sparingly:
Reduce Render Resolution
Reduce Render Resolution
Render at lower resolution for better performance:
Next Steps
Syntax Highlighting
Add tree-sitter code highlighting
Building Your First App
Complete tutorial for building apps