Files
aTanguay-ComfyUI_Detonate/utils
Claude e15b4be146 feat: Tier 5 - Interactive Masking (RotoBezier, v0.7.0)
MAJOR FEATURE: Professional rotoscoping tools with interactive Bezier spline drawing!

New Nodes (2):
- RotoBezier: Interactive Bezier spline drawing for mask creation
- RotoBezier From Image: Auto-dimension rotoscoping (matches input image)

Key Features:
- Web-based interactive drawing widget (HTML5 Canvas)
- de Casteljau's algorithm for numerically stable Bezier evaluation
- Supersampling anti-aliasing (1-16×) for film-quality smooth edges
- Distance field feathering with smoothstep falloff (superior to blur)
- Multiple splines support (additive)
- Keyboard shortcuts: Enter/Delete/Escape
- JSON-based widget-to-backend data exchange

Technical Implementation:
- Frontend: web/js/detonate_roto_bezier.js (interactive widget)
  - BezierPoint, BezierSpline, BezierDrawingWidget classes
  - Mouse/keyboard event handling
  - Real-time visual feedback
- Backend: nodes/matte/roto_bezier.py
  - DetonateRotoBezier, DetonateRotoBezierFromImage nodes
  - High-quality rasterization pipeline
  - Anti-aliasing via supersampling
  - Distance transform-based feathering
- Math: utils/bezier_utils.py
  - de Casteljau recursive evaluation
  - Spline discretization (uniform & adaptive)
  - Tangent computation for normals

Why This Matters:
- #1 requested feature by compositors
- Replaces Natron/Nuke RotoPaint for basic rotoscoping
- Essential for garbage mattes and subject isolation
- Best-in-class implementation with modern web UI

Documentation:
- Comprehensive NODE_SPECIFICATIONS.md entry (Tier 5)
- Updated README with feature highlights
- Detailed technical specifications and workflow examples

Total Nodes: 36 (9 Tier 1 + 8 Tier 2 + 1 Cryptomatte + 8 Tier 3 + 8 Tier 4 + 2 Tier 5)
Version: 0.7.0
2025-11-22 18:23:38 +00:00
..