Graph Editor - Smooth Keys function not working correctly #39324

Closed
opened 2014-03-21 14:20:23 +01:00 by Ignatz · 9 comments

Windows 7 Pro 64-bit
Intel Core i7-4770K CPU @ 3.50GHz
ASUS nVidia GeForce GTX 760 2GB GDDR5 DirectCU Mini

Broken: 2.69 r60995

Broken: 2.70 19e627c

Problem: Smoothing algorithm does not work properly.

When the selected keyframes in the file are subjected to the smoothing algorithm (alt-o) the results are actually much worse (bumpier) than before the algorithm was used.

Yes, I know this appears to be a 'worst case' scenario, since the curve in question has already been hand adjusted to be correct. But this algorithm is basically 'broken' if it makes such a curve worse than when it started.

In point of fact, I have attempted to use this 'smoothing' algorithm several times on real world problem curves and find that the results are so bad as to make it more trouble than it is worth. It is simpler to save time and adjust my curves by hand.

Such a function is needed within the graph editor, but the current results would suggest that this algorithm is really due for a re-write.

smoothing_problem.jpg

See attached blend file.

Graph_editor_-_smooth_keys_problem.blend

Windows 7 Pro 64-bit Intel Core i7-4770K CPU @ 3.50GHz ASUS nVidia GeForce GTX 760 2GB GDDR5 DirectCU Mini Broken: 2.69 r60995 Broken: 2.70 19e627c Problem: Smoothing algorithm does not work properly. When the selected keyframes in the file are subjected to the smoothing algorithm (alt-o) the results are actually much worse (bumpier) than before the algorithm was used. Yes, I know this appears to be a 'worst case' scenario, since the curve in question has already been hand adjusted to be correct. But this algorithm is basically 'broken' if it makes such a curve worse than when it started. In point of fact, I have attempted to use this 'smoothing' algorithm several times on real world problem curves and find that the results are so bad as to make it more trouble than it is worth. It is simpler to save time and adjust my curves by hand. Such a function is needed within the graph editor, but the current results would suggest that this algorithm is really due for a re-write. ![smoothing_problem.jpg](https://archive.blender.org/developer/F82084/smoothing_problem.jpg) See attached blend file. [Graph_editor_-_smooth_keys_problem.blend](https://archive.blender.org/developer/F82086/Graph_editor_-_smooth_keys_problem.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ignatz

Added subscriber: @ignatz

Added subscriber: @mont29

Added subscriber: @mont29
Joshua Leung was assigned by Bastien Montagne 2014-03-22 12:40:50 +01:00

I’m not quite sure this is really a bug, as far as I know this tool is designed to ease curves with many keyframes, not to be applied on such one as in your example. We more than likely would use better algo, but this does not make it a bug imho.

Will let Joshua decide, anyway! :)

I’m not quite sure this is really a bug, as far as I know this tool is designed to ease curves with many keyframes, not to be applied on such one as in your example. We more than likely would use better algo, but this does not make it a bug imho. Will let Joshua decide, anyway! :)
Author

@mont29 - As I pointed out in the write-up, I used this as a 'worst case' scenario in order to demonstrate that the algorithm doesn't have the basic 'smarts' to figure out that a curve is already smooth enough. In other real world examples of my own work where the curves are not already smooth it does much worse... seldom actually doing any real 'smoothing' in a way that would be helpful.

@mont29 - As I pointed out in the write-up, I used this as a 'worst case' scenario in order to demonstrate that the algorithm doesn't have the basic 'smarts' to figure out that a curve is already smooth enough. In other real world examples of my own work where the curves are not already smooth it does much worse... seldom actually doing any real 'smoothing' in a way that would be helpful.
Member

As @mont29 said, the algorithm in use was designed for use with relatively dense FCurves instead of for curves like this.

As @mont29 said, the algorithm in use was designed for use with relatively dense FCurves instead of for curves like this.
Joshua Leung was unassigned by Sybren A. Stüvel 2020-11-09 18:37:25 +01:00

Added subscriber: @ChrisLend

Added subscriber: @ChrisLend
Christoph Lendenfeld self-assigned this 2020-11-15 22:23:39 +01:00

I implemented a solution to this in D9477

I implemented a solution to this in [D9477](https://archive.blender.org/developer/D9477)
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:36:52 +01:00

Since there is now a smoothing algorithm in Blender (Gaussian Smooth) that allows uneven key distance, this can be seen as resolved

Since there is now a smoothing algorithm in Blender (Gaussian Smooth) that allows uneven key distance, this can be seen as resolved
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-04-14 09:46:52 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39324
No description provided.