Use it here : https://usini.github.io/depth/
A real-time 3D depth map visualization tool built with Three.js. Load depth map images or capture your screen to create interactive 3D relief visualizations.
No installation required!
preview.mp4
- Image Loading: Load local depth map images (PNG, JPG, etc.)
- Screen Capture: Capture your screen in real-time with configurable intervals
- 3D Visualization: GPU-accelerated displacement mapping with Gaussian/Max kernel smoothing
- Picture-in-Picture: View the 3D canvas in a floating PiP window
- Gold Filter: Optional gold tint overlay for aesthetic effect
- Persistent Settings: Depth and capture interval settings are saved between sessions
- Multi-language Support: English and French included, easy to add more
- Click Start to begin continuous screen capture
- Select the screen, window, or tab you want to capture
- The 3D view updates automatically at the specified interval
- Click Stop to end capture
Use Single Capture for one-time captures without continuous updates.
| Control | Description |
|---|---|
| Depth | Adjusts the height/intensity of the 3D displacement (0-5) |
| Capture interval | Time between screen captures in milliseconds |
| Gold filter | Toggles a golden color tint on the visualization |
| Picture-in-Picture | Opens the 3D view in a floating window |
| Language | Switch between available languages |
- Left drag: Rotate view
- Right drag: Pan view
- Scroll: Zoom in/out
The i18n system makes adding translations simple:
- Open
i18n.js - Copy the
entranslation block - Paste it with a new language code (e.g.,
es,de,ja) - Translate all values
- The language automatically appears in the selector
Example:
es: {
_name: 'Español',
_flag: '🇪🇸',
appTitle: 'Mapa de Profundidad',
uploadLabel: 'Imagen local',
// ... translate remaining keys
}- Three.js for WebGL rendering
- Custom GLSL shaders for GPU-based displacement mapping
- Hybrid Gauss/Max kernel for edge-preserving depth smoothing
- LocalStorage for settings persistence
Requires a modern browser with:
- WebGL support
- ES6 modules
- Screen Capture API (for screen capture feature)
- Picture-in-Picture API (for PiP feature)
This application was partly built using GPT4.1 and Claude Opus 4.5
Made by µsini
MIT License
