# 🌊 Depthflow Node Pack for ComfyUI 🌊 **Turn your 2D images into stunning 2.5D parallax animations using Depthflow in ComfyUI. An open source Immersity alternative.** 🙌 **An implementation of the Depthflow library in ComfyUI originally created by [Tremeschin](https://github.com/Tremeschin)!** - Check out the [Depthflow github page](https://github.com/BrokenSource/DepthFlow)! - Also see his [Awesome Website](https://brokensrc.dev/depthflow/) for more info! ⚡ **Extends [RyanOnTheInside's Flex System](https://github.com/ryanontheinside/ComfyUI_RyanOnTheInside)** for additional motion control and dynamic features! ## 🚀 Showcase
The heart of the node pack. The **Depthflow** node takes an image (or video) and its corresponding depth map and applies various types of motion animation (Zoom, Dolly, Circle, etc.) to generate a parallax effect. This node outputs a batch of images to be rendered as a video.
**Parameters:**
- `image`: Input image or image batch.
- `depth_map`: Depthmap image or image batch corresponding to the input image.
- `motion`: Depthflow motion object(s) for configuring animation.
- `effects`: (Optional) Depthflow Effects including DOF and Vignette that can be stacked.
- `num_frames`: Number of frames in the animation.
- `input_fps`: Frames per second for the input.
- `output_fps`: Frames per second for the output video.
- `quality`: Output quality (1-100)
- `ssaa`: Super sampling anti-aliasing samples (0.0-2.0)
- `invert`: Invert the depthmap.
- `tiling_mode`: Control for tiling the image.

---
### **2. Depthflow Effects**
Enhance the parallax animation with customizable effects such as Depth of Field and Vignette. These effects can be configured to interact with the depth information for a more immersive experience.
- **DOF Effect**: A depth-aware blur effect to simulate focus and bokeh, giving your animations a cinematic feel.
- **Vignette Effect**: A vignette effect that darkens the edges of the frame.
**Examples:**


*(Depth of Field effect modulated over time by a feature to more clearly demonstrate the effect)*
---
### **3. Depthflow Motion**
Take control of your animations with pre-configured **motion presets** or dive deep with granular **motion components** to create exactly the movement you want.
#### **Motion Presets**

Simplify your workflow with ready-to-use presets for common animations. Nodes like **Zoom**, **Dolly**, and **Circle** abstract away complex parameters so you can focus on creative output.
- **Orbital Motion Preset**: Creates an orbital motion around a focal point, giving a 3D rotational effect.
- **Dolly Motion Preset**: Simulates a dolly camera motion, moving toward or away from the subject for a dynamic depth effect.
- **Circle Motion Preset**: Creates smooth circular motion around a point of focus, simulating rotational camera movement.
- **Vertical Motion Preset**: Applies vertical panning motion to the scene, moving the view up or down.
- **Horizontal Motion Preset**: Moves the scene horizontally, simulating a side-to-side panning motion.
- **Zoom Motion Preset**: Configure zoom intensity, direction (inward or outward), and looping behavior for dramatic zoom effects.
**Examples**:
