F-Curve modifier - Builtin-Function - Wrong Sine Amplitude for Angle transformation #42705

Closed
opened 2014-11-24 02:51:17 +01:00 by Dolphin Dream · 10 comments
Member

System Information
MacBook Pro
Processor 2.2 GHz Intel Core i7
Memory 8 GB 1333 MHz DDR3
Graphics AMD Radeon HD 6750M 1024 MB
Software OS X 10.8.5 - Mountain Lion

Blender Version
2.72b (9e963ae)

Short description of error
While keyframing a rotation transformation (e.g. rotation about Z axis) using the f-curve modifier (builtin-function) to generate a sine wave, for the default amplitude of 1 the actual amplitude of the generated plot is actually about 57.3 (instead of 1). See the attached screenshot & blend file.

Exact steps for others to reproduce the error
See attached blend file. Add keyframe at frame 0 for the Z rotation for the cube object. In the f-curve editor add a bultin-function modifier (sine) to the z Euler rotation. The generated plot has an amplitude of 57.3ish.

Note:
Btw, I wish this builtin function(s) would be enhanced to allow to define a precise period/frequency, and definitely better documented. Sure, the frequency may be depended on the actual frame rate, but the current "phase multiplier" that alters the frequency is a rather obscure parameter. IMO a simpler parameter set that would allow a sine function of given amplitude and frequency is desirable. Also, it would be helpful if the phase multiplier change could be performed around the mouse location instead of (i presume) zero? I'm having a hard time matching a manually generated sine curve with a generated one by adjusting the phase multiplier and offset independently.

Screen_Shot_2014-11-23_at_8.29.53_PM.png

fCurveModifier-WrongSineAmplitude.blend

System Information MacBook Pro Processor 2.2 GHz Intel Core i7 Memory 8 GB 1333 MHz DDR3 Graphics AMD Radeon HD 6750M 1024 MB Software OS X 10.8.5 - Mountain Lion Blender Version 2.72b (9e963ae) **Short description of error** While keyframing a rotation transformation (e.g. rotation about Z axis) using the f-curve modifier (builtin-function) to generate a sine wave, for the default amplitude of 1 the actual amplitude of the generated plot is actually about 57.3 (instead of 1). See the attached screenshot & blend file. **Exact steps for others to reproduce the error** See attached blend file. Add keyframe at frame 0 for the Z rotation for the cube object. In the f-curve editor add a bultin-function modifier (sine) to the z Euler rotation. The generated plot has an amplitude of 57.3ish. Note: Btw, I wish this builtin function(s) would be enhanced to allow to define a precise period/frequency, and definitely better documented. Sure, the frequency may be depended on the actual frame rate, but the current "phase multiplier" that alters the frequency is a rather obscure parameter. IMO a simpler parameter set that would allow a sine function of given amplitude and frequency is desirable. Also, it would be helpful if the phase multiplier change could be performed around the mouse location instead of (i presume) zero? I'm having a hard time matching a manually generated sine curve with a generated one by adjusting the phase multiplier and offset independently. ![Screen_Shot_2014-11-23_at_8.29.53_PM.png](https://archive.blender.org/developer/F125788/Screen_Shot_2014-11-23_at_8.29.53_PM.png) [fCurveModifier-WrongSineAmplitude.blend](https://archive.blender.org/developer/F125789/fCurveModifier-WrongSineAmplitude.blend)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @MariusGiurgi

Added subscriber: @MariusGiurgi
Joshua Leung was assigned by Sergey Sharybin 2014-11-25 15:19:13 +01:00

Added subscribers: @JoshuaLeung, @Sergey

Added subscribers: @JoshuaLeung, @Sergey

@JoshuaLeung, do you mind having a look here? Afraid you know history of f-curve modifiers better than anyone here :)

@JoshuaLeung, do you mind having a look here? Afraid you know history of f-curve modifiers better than anyone here :)
Member

It's a bit of an unfortunate consequence of the way that the way these things work/are set up.

All rotations are internally stored in radians. So a "value" of 1.0 for the property corresponds to 1.0 radians = ~57.3 degrees.

It's only for buttons that these values get translated to degrees, and that's only if the unit conversion code is enabled AND the UI code knows that the property represents a rotation. Unfortunately, the UI code doesn't know about how to handle these sorts of conversions when the type of a property depends on what the owner of that property is attached to (i.e. amplitude property of a FModifier on a rotation FCurve).

A similar situation showed up a few releases back with constraints; I'm not convinced that the solution applied there is necessarily the right solution, as this sort of thing is just going to keep occurring again and again with such interfaces.

It's a bit of an unfortunate consequence of the way that the way these things work/are set up. All rotations are internally stored in radians. So a "value" of 1.0 for the property corresponds to 1.0 radians = ~57.3 degrees. It's only for buttons that these values get translated to degrees, and that's only if the unit conversion code is enabled AND the UI code knows that the property represents a rotation. Unfortunately, the UI code doesn't know about how to handle these sorts of conversions when the type of a property depends on what the owner of that property is attached to (i.e. amplitude property of a FModifier on a rotation FCurve). A similar situation showed up a few releases back with constraints; I'm not convinced that the solution applied there is necessarily the right solution, as this sort of thing is just going to keep occurring again and again with such interfaces.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

For me it sounds as a TODO related on improving interface in general.

Thanks for the report, but moving ti there now http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Editors#AnimEditors

For me it sounds as a TODO related on improving interface in general. Thanks for the report, but moving ti there now http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Editors#AnimEditors

Added subscriber: @Esparadrapo

Added subscriber: @Esparadrapo

Just a friendly reminder that this problem persists and you can't set an exact period because of radians.

Just a friendly reminder that this problem persists and you can't set an exact period because of radians.
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
No Assignees
5 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#42705
No description provided.