You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SSGI: Reduce ghosting artifacts with improved temporal filtering
This commit implements several improvements to reduce ghosting in SSGI with temporal filtering:
**TRAANode.js improvements:**
1. **Adaptive blend weights based on motion**
- Changed from fixed 5% current / 95% history to adaptive 5-30% current based on motion
- Uses velocity magnitude to detect fast-moving areas and increase current frame weight
- Reduces ghosting in motion while maintaining stability in static areas
2. **Improved disocclusion detection**
- Better world position difference threshold (0.5 instead of 0.01)
- Separates edge detection from disocclusion to preserve anti-aliasing
- More accurate edge threshold (0.00001 instead of 0.0001)
3. **Pure variance-based color clamping**
- Implements pure variance clipping as recommended by Salvi (GDC 2016)
- Computes mean and standard deviation of 3x3 neighborhood
- Clamps history to mean ± gamma * stddev (gamma = 1.25)
- Significantly reduces ghosting while preserving detail
**SSGINode.js improvements:**
1. **Extended temporal sampling patterns**
- Increased rotation angles from 6 to 12 values
- Increased spatial offsets from 4 to 8 values
- Better temporal distribution reduces noise convergence time
- Helps reduce residual ghosting artifacts
These changes should significantly reduce ghosting while maintaining the quality of temporal anti-aliasing and SSGI.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments