Skip to content

feat: replace motion blur toggle with intensity slider#221

Merged
siddharthvaddem merged 3 commits intosiddharthvaddem:mainfrom
EtienneLescot:feat/motion-blur-slider
Mar 16, 2026
Merged

feat: replace motion blur toggle with intensity slider#221
siddharthvaddem merged 3 commits intosiddharthvaddem:mainfrom
EtienneLescot:feat/motion-blur-slider

Conversation

@EtienneLescot
Copy link
Contributor

Addresses feedback from #207 (comments by @siddharthvaddem and @webadderall).

Problem

Motion blur was a boolean toggle (on/off), but the actual quality depends heavily on the intensity value. The default of 0.35 gives the best result per @webadderall's testing, but users had no way to tune it.

Changes

  • Motion Blur in the Video Effects panel is now a slider (0–1, step 0.01) instead of a switch
  • Value 0 shows as off, anything above shows the numeric value (e.g. 0.35)
  • The blur scales proportionally: amount * motionIntensity * 120, capped at 6px — same formula, now user-tunable
  • Preview and export both use the slider value
  • Backward-compatible: existing saved projects with motionBlurEnabled: true load as 0.35, false loads as 0

Files changed

File Change
useEditorHistory.ts motionBlurEnabled: boolmotionBlurAmount: number
projectPersistence.ts Same, + backward-compat loader
SettingsPanel.tsx Switch → Slider UI
VideoEditor.tsx Prop rename + callback updated
VideoPlayback.tsx Prop rename, ref updated
zoomTransform.ts Type boolnumber, blur scales by amount
frameRenderer.ts Type boolnumber
videoExporter.ts Type boolnumber
gifExporter.ts Type boolnumber

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 293d8bd62c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Motion blur was a boolean switch (on/off). This changes it to a slider
from 0 (off) to 1 (full intensity), with 0.35 as the recommended sweet
spot per feedback on PR siddharthvaddem#207.

- EditorState/ProjectEditorState: motionBlurEnabled:bool → motionBlurAmount:number
- SettingsPanel: Switch → Slider (0–1, step 0.01); shows 'off' or value
- VideoPlayback/zoomTransform: scale blur by amount instead of boolean gate
- FrameRenderer/VideoExporter/GifExporter: propagate numeric amount
- projectPersistence: backward-compat loader (old true → 0.35, false → 0)
@EtienneLescot EtienneLescot force-pushed the feat/motion-blur-slider branch from 293d8bd to dd84eda Compare March 16, 2026 11:26
@siddharthvaddem siddharthvaddem merged commit c8cf052 into siddharthvaddem:main Mar 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants