# Dreamers Particle Motions

Turn up to four images into a moving particle relief. Add PNG, JPEG or WebP images, hover to push particles, or press and drag on touch. Switch to **Orbit mode** to rotate. Scroll to zoom. Images, depth maps and presets stay in your browser; refreshing clears the loaded images.

## Motion and appearance

Adjust drift strength/speed and the drift line's position, angle and fading side. Scatter and gathering speeds are independent. Swarm shuffles destinations; Melt matches nearby colours. Next image, automatic transitions, pointer radius/strength and the independent Track, Links, Scan, Trails and Marks layers work together. Use colour, light, paper and quality controls to tune the result. Reset restores controls while keeping your images.

## Depth

- **Illustrative relief** is the default. It combines normalized brightness with sheet curvature and is not AI depth.
- **Normalized brightness** uses luminance alone.
- **Imported depth map** lets you supply a grayscale map for each image.
- **Generate AI depth locally** uses the optional Depth Anything V2 Small model. Click it for each desired image; the model/runtime loads only after this action. Your image never goes to a server. Cancellation stops its worker. Image changes and reset also cancel an unfinished calculation.

AI depth estimates relative visible-surface distance, not hidden geometry or a complete 3D object. It can misread reflections, fine edges, low-contrast subjects and unusual images. The integration resizes the longest side to 518 pixels, rounding dimensions to multiples of 14, with ImageNet normalization; the model's original processor uses a different resize bound. This deliberate memory/performance compromise can affect accuracy. The depth map is percentile-normalized and smoothed for the particle sampler.

AI inference took approximately 3–4 seconds on the tested Mac in Chrome; other devices may be slower. In a separate isolated Chrome measurement, total process-tree RSS rose from about 1.09 GB to a 1.54 GB peak during inference (not model-only memory); low-memory devices should use the default fallback. A 90-second timeout retains the existing fallback. The browser loads about 38.6 MB of model/runtime assets from this site's own static hosting; browser caching determines whether later actions reuse transfers. No external AI service is used. The standalone HTML edition has no AI runtime and makes no HTTP requests.

## Download a video

1. Click **Download video** in the header.
2. Choose WebM or MP4 from the formats supported by your browser, a duration of 3–30 seconds, and preview, landscape, square or portrait dimensions.
3. Click **Record video**. Keep the tab visible and interact with the scene if desired. Progress and Cancel remain available.
4. Preview the finished clip, then click **Download recorded video**. Starting another recording replaces the in-memory preview.

Recording is real time at a target of 30 fps, without audio. A hidden tab cancels recording rather than silently producing an incomplete clip. The output fits the current preview with borders where aspect ratios differ; a larger resolution may upscale the preview. Actual frame rate depends on device load. Chrome's streaming WebM receives duration metadata when its container layout is recognized. MP4 availability is browser-dependent; no external converter is used.

PNG captures the current frame and layers. PLY exports object-space point geometry and colours, without a mesh, screen-space pointer displacement or overlay layers. Presets save controls/camera only, not images or depth maps. Previous Relief Motion v2 presets remain compatible.

Limits: four images; 30 MB/40 MP per input; local image decoding downsamples to a 2048-pixel maximum edge; up to 262,144 particles; preview rendering up to 1920 × 1440. No audio synchronization, timeline editor or 4K export.

## Credits

The editor, renderer, interaction, matching and export integration use original code. No Gather application code or assets were copied. Optional AI assets are Depth Anything V2 Small / ONNX-community quantized conversion (Apache-2.0), and Microsoft ONNX Runtime Web 1.22.0 (MIT, with bundled third-party notices). See `THIRD-PARTY.md` and the included license files.
