InputLightweight
User upload
The visitor’s own file becomes the content.
The visitor drops in their own image, 3D model or song, and it becomes the content. A photo becomes a 3D card, a model spins in a viewer. The file never leaves their browser.
- Breaks when
- untrusted file sizesformat support gaps
- Also called
- drag and drop, file input, glTF viewer
Prompts
Drop an image, get a 3D object
A drop zone (and a file input for keyboard users) accepting one image up to 12 MB: createObjectURL → TextureLoader → a Three.js plane sized to the image’s aspect, with a subtle displacement from the image’s luminance in the vertex shader and a slow pointer parallax. Revoke the object URL after the texture loads. Reject non-images with a clear message; on mobile Safari, resize images over 4096 px with a canvas first.
glTF viewer with validation
Accept .glb/.gltf drops (and their sidecar files via a folder drop), load with GLTFLoader through a custom LoadingManager that resolves blobs by name, frame the camera with fitToBox, add a RoomEnvironment, and show a stats panel (triangles, materials, textures, animations). Validate with gltf-validator and show warnings.
Audio file to visualizer
Drop an audio file, decode it with decodeAudioData, precompute a waveform overview (4,000 buckets of peak amplitude) for the timeline, then play it through an AnalyserNode for live bars. Playback controls, keyboard shortcuts, and no upload.
Related
Resources · 1
- glTF Viewerdonrmccurdysite · code · demoMay 25, 2026