Lattice with Armature modifier not updating correctly #54594

Closed
opened 2018-04-13 15:43:06 +02:00 by Juan Pablo Bouza · 6 comments

This happen in 2.79 and master ... I'm 90% sure is only happens with the New Depsgraph.

I'm attaching a blend file which contains part of the rig of Spring.

What happens is that when you rotate or move the bone head_def_3, the lattice starts jumping around. This seems to happen only if the if the armature that deforms the lattice is actively deforming it, it doesn't happen if the armature is in rest pose.

Ok, so now I'll describe the setup.

You have 3 objects:

  1. RIG-Spring
  2. side_hair_rig
  3. LATTICE_SIDE_HAIR_L

So, the lattice is deformed by "side_hair_rig" with an armature modifier, and both objects are parented to the "head_def_3" bone in the Rig-Spring object. When you manipulate head_def_3, the lattices jumps around. In other words, the problem seems to occur when you manipulate the parent rig, not if you directly manipulate the deformation rig.

lattice_bug_spring.blend

This happen in 2.79 and master ... I'm 90% sure is only happens with the New Depsgraph. I'm attaching a blend file which contains part of the rig of Spring. What happens is that when you rotate or move the bone head_def_3, the lattice starts jumping around. This seems to happen only if the if the armature that deforms the lattice is actively deforming it, it doesn't happen if the armature is in rest pose. Ok, so now I'll describe the setup. You have 3 objects: 1) RIG-Spring 2) side_hair_rig 3) LATTICE_SIDE_HAIR_L So, the lattice is deformed by "side_hair_rig" with an armature modifier, and both objects are parented to the "head_def_3" bone in the Rig-Spring object. When you manipulate head_def_3, the lattices jumps around. In other words, the problem seems to occur when you manipulate the parent rig, not if you directly manipulate the deformation rig. [lattice_bug_spring.blend](https://archive.blender.org/developer/F2678583/lattice_bug_spring.blend)
Author
Member

Added subscriber: @jpbouza-4

Added subscriber: @jpbouza-4
Sergey Sharybin was assigned by Juan Pablo Bouza 2018-04-15 17:14:36 +02:00
Author
Member

Added subscribers: @eyecandy, @Hjalti, @ideasman42

Added subscribers: @eyecandy, @Hjalti, @ideasman42
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I can only get it to fail with new depsgraph.

Not sure it helps (and if the order of logging is reliable), but here is an output of two jumping frames with --debug-depsgraph:

deg_evaluate_on_refresh: layers:5120, graph->layers:5120
BKE_animsys_eval_animdata on OBRIG-Spring (0x7fd15bba9208) at time 4.000000
BKE_animsys_eval_animdata on OBside_hair_rig (0x7fd15bba9808) at time 4.000000
BKE_pose_eval_init on OBRIG-Spring (0x7fd15bba9208)
BKE_pose_eval_init_ik on OBRIG-Spring (0x7fd15bba9208)
BKE_pose_eval_bone on OBRIG-Spring (0x7fd15bba9208) pchan head_def_3 (0x7fd153ebfc88)
BKE_pose_bone_done on head_def_3 (0x7fd153ebfc88)
BKE_object_eval_local_transform on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
BKE_pose_eval_flush on OBRIG-Spring (0x7fd15bba9208)
BKE_object_eval_local_transform on OBside_hair_rig (0x7fd15bba9808)
BKE_object_eval_parent on OBside_hair_rig (0x7fd15bba9808)
BKE_object_eval_done on OBside_hair_rig (0x7fd15bba9808)
BKE_object_eval_uber_data on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
recalcdata LATTICE_SIDE_HAIR_L
BKE_object_eval_parent on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
BKE_object_eval_done on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
Depsgraph updated in 0.000539 seconds.

then the next:

deg_evaluate_on_refresh: layers:5120, graph->layers:5120
BKE_animsys_eval_animdata on OBside_hair_rig (0x7fd15bba9808) at time 5.000000
BKE_animsys_eval_animdata on OBRIG-Spring (0x7fd15bba9208) at time 5.000000
BKE_pose_eval_init on OBRIG-Spring (0x7fd15bba9208)
BKE_pose_eval_init_ik on OBRIG-Spring (0x7fd15bba9208)
BKE_pose_eval_bone on OBRIG-Spring (0x7fd15bba9208) pchan head_def_3 (0x7fd153ebfc88)
BKE_pose_bone_done on head_def_3 (0x7fd153ebfc88)
BKE_object_eval_local_transform on OBside_hair_rig (0x7fd15bba9808)
BKE_pose_eval_flush on OBRIG-Spring (0x7fd15bba9208)
BKE_object_eval_local_transform on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
BKE_object_eval_parent on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
BKE_object_eval_done on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
BKE_object_eval_parent on OBside_hair_rig (0x7fd15bba9808)
BKE_object_eval_done on OBside_hair_rig (0x7fd15bba9808)
BKE_object_eval_uber_data on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08)
recalcdata LATTICE_SIDE_HAIR_L
Depsgraph updated in 0.000568 seconds.

notice how recalcdata LATTICE_SIDE_HAIR_L is not last in one occasion?

I can only get it to fail with new depsgraph. Not sure it helps (and if the order of logging is reliable), but here is an output of two jumping frames with `--debug-depsgraph`: ``` deg_evaluate_on_refresh: layers:5120, graph->layers:5120 BKE_animsys_eval_animdata on OBRIG-Spring (0x7fd15bba9208) at time 4.000000 BKE_animsys_eval_animdata on OBside_hair_rig (0x7fd15bba9808) at time 4.000000 BKE_pose_eval_init on OBRIG-Spring (0x7fd15bba9208) BKE_pose_eval_init_ik on OBRIG-Spring (0x7fd15bba9208) BKE_pose_eval_bone on OBRIG-Spring (0x7fd15bba9208) pchan head_def_3 (0x7fd153ebfc88) BKE_pose_bone_done on head_def_3 (0x7fd153ebfc88) BKE_object_eval_local_transform on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) BKE_pose_eval_flush on OBRIG-Spring (0x7fd15bba9208) BKE_object_eval_local_transform on OBside_hair_rig (0x7fd15bba9808) BKE_object_eval_parent on OBside_hair_rig (0x7fd15bba9808) BKE_object_eval_done on OBside_hair_rig (0x7fd15bba9808) BKE_object_eval_uber_data on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) recalcdata LATTICE_SIDE_HAIR_L BKE_object_eval_parent on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) BKE_object_eval_done on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) Depsgraph updated in 0.000539 seconds. ``` then the next: ``` deg_evaluate_on_refresh: layers:5120, graph->layers:5120 BKE_animsys_eval_animdata on OBside_hair_rig (0x7fd15bba9808) at time 5.000000 BKE_animsys_eval_animdata on OBRIG-Spring (0x7fd15bba9208) at time 5.000000 BKE_pose_eval_init on OBRIG-Spring (0x7fd15bba9208) BKE_pose_eval_init_ik on OBRIG-Spring (0x7fd15bba9208) BKE_pose_eval_bone on OBRIG-Spring (0x7fd15bba9208) pchan head_def_3 (0x7fd153ebfc88) BKE_pose_bone_done on head_def_3 (0x7fd153ebfc88) BKE_object_eval_local_transform on OBside_hair_rig (0x7fd15bba9808) BKE_pose_eval_flush on OBRIG-Spring (0x7fd15bba9208) BKE_object_eval_local_transform on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) BKE_object_eval_parent on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) BKE_object_eval_done on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) BKE_object_eval_parent on OBside_hair_rig (0x7fd15bba9808) BKE_object_eval_done on OBside_hair_rig (0x7fd15bba9808) BKE_object_eval_uber_data on OBLATTICE_SIDE_HAIR_L (0x7fd15bba8c08) recalcdata LATTICE_SIDE_HAIR_L Depsgraph updated in 0.000568 seconds. ``` notice how `recalcdata LATTICE_SIDE_HAIR_L` is not last in one occasion?

This issue was referenced by ea1751a038

This issue was referenced by ea1751a03855c428b2815d8086e353842268637f

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
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#54594
No description provided.