[1.20.1] Add optional frame stacking for long-exposure motion blur#259
Draft
GS11566 wants to merge 1 commit intomortuusars:1.20.1-1.9-backportfrom
Draft
[1.20.1] Add optional frame stacking for long-exposure motion blur#259GS11566 wants to merge 1 commit intomortuusars:1.20.1-1.9-backportfrom
GS11566 wants to merge 1 commit intomortuusars:1.20.1-1.9-backportfrom
Conversation
1. Added client config options for camera for frame stacking 2. Created Stacked Screenshot Capture task, responsible for capturing screenshots and accumulating them 3. Changed Camera Capture template to work with stacked screenshots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional frame stacking to simulate real long-exposure photography. When enabled, the camera captures multiple frames across the shutter duration and accumulates them, creating motion blur for moving subjects and proper light accumulation.
Motivation
Currently, changing shutter speed only adjusts brightness via gamma correction. Real long-exposure photography collects light over time, creating motion blur when subjects move during the exposure. This PR adds that simulation.
Related to issue #86 (motion blur suggestion).
Implementation Details
Core Changes
StackedScreenshotCaptureTask.java- Captures N frames across shutter durationCameraCaptureTemplate.java- Uses stacked capture if enabledmodifyGammais skipped to prevent double-brighteningConfiguration (Client-side)
Added to
Config.Client:USE_FRAME_STACKINGfalseScreenshots
Before (Current Behavior)
1", moving while shooting - no blur
1", standing in place
After (With Frame Stacking)
1" shutter, same movement - visible motion blur
1", standing in place, almost the same image