Ik + Stretch + High Unit Scale + Apply Scale = incorrect results #51406

Closed
opened 2017-05-04 00:47:33 +02:00 by lucas veber · 6 comments

System Information
Win10 gtx 980

Blender Version
Blender 2.78 recent build (25/04/17) 0f2d0ff

Short description of error
When setting up an IK chain with stretch, in world unit scale 0.01, and large armature scale, applying the scale transform gives incorrect IK stretch. Please see .blend file attached.

It's not that I like working with 0.01 unit scale and big bones, but unfortunately this operation is needed to export to the Unreal Engine.

Exact steps for others to reproduce the error
Open the blend file, hit Ctrl-A > Scale. When unchecking Stretch from the IK constraint, it works.

Thanks for your work.

bug_scale_ik_stretch.blend

**System Information** Win10 gtx 980 **Blender Version** Blender 2.78 recent build (25/04/17) 0f2d0ff **Short description of error** When setting up an IK chain with stretch, in world unit scale 0.01, and large armature scale, applying the scale transform gives incorrect IK stretch. Please see .blend file attached. It's not that I like working with 0.01 unit scale and big bones, but unfortunately this operation is needed to export to the Unreal Engine. **Exact steps for others to reproduce the error** Open the blend file, hit Ctrl-A > Scale. When unchecking Stretch from the IK constraint, it works. Thanks for your work. [bug_scale_ik_stretch.blend](https://archive.blender.org/developer/F586856/bug_scale_ik_stretch.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @LucasVeber

Added subscriber: @LucasVeber

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-06-02 12:03:30 +02:00

Your object is 12252.83 by 7.568 by 21773.992 blender units (the metric preset thingie is purely interface, internally everything is stored in Blender Units!) which ruins all precision of the IK solver which uses single precision floating point types.

Going double precision might solve the problem, or maybe existing code could be reformulated to become more robust to such cases, but that's not considered a bug.

So thanks for the report, but closing it now. Just work in more sane Blender Unit values to avoid precision issues.

Your object is 12252.83 by 7.568 by 21773.992 blender units (the metric preset thingie is purely interface, internally everything is stored in Blender Units!) which ruins all precision of the IK solver which uses single precision floating point types. Going double precision might solve the problem, or maybe existing code could be reformulated to become more robust to such cases, but that's not considered a bug. So thanks for the report, but closing it now. Just work in more sane Blender Unit values to avoid precision issues.
Author

I understand, but as explained scaling this high is necessary to export to .fbx for Unreal Engine... Though it's possible to reduce the scale, would have been nice to handle these high scale units...

I understand, but as explained scaling this high is necessary to export to .fbx for Unreal Engine... Though it's possible to reduce the scale, would have been nice to handle these high scale units...
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
2 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#51406
No description provided.