Weird oscillations in parented rigid body simulation #68183

Closed
opened 2019-08-03 19:20:41 +02:00 by Justas Birgiolas · 7 comments

System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.16

Blender Version
Broken: version: 2.81 (sub 1), branch: master, commit date: 2019-08-03 10:22, hash: 5e5cf9ea9f
Worked: 2.79

Short description of error
Weird oscillations in parented rigid body simulation

Exact steps for others to reproduce the error

  • Start blender, copy-paste the cube, move Cube.001 so they're both next to each other
  • Make both cubes as rigid bodies
  • Set Cube type to 'Passive'
  • Make Cube the parent of Cube.001
  • Play animation
  • Expected: Cube.001 falls down

Actual: Cube.001 rapidly oscillates between the starting position and the falling position

untitled.blend

**System Information** Operating system: Windows-10-10.0.16299 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.16 **Blender Version** Broken: version: 2.81 (sub 1), branch: master, commit date: 2019-08-03 10:22, hash: `5e5cf9ea9f` Worked: 2.79 **Short description of error** Weird oscillations in parented rigid body simulation **Exact steps for others to reproduce the error** - Start blender, copy-paste the cube, move Cube.001 so they're both next to each other - Make both cubes as rigid bodies - Set Cube type to 'Passive' - Make Cube the parent of Cube.001 - Play animation - Expected: Cube.001 falls down # Actual: Cube.001 rapidly oscillates between the starting position and the falling position [untitled.blend](https://archive.blender.org/developer/F7647462/untitled.blend)

Added subscriber: @justasb

Added subscriber: @justasb

Added subscriber: @hgabor47

Added subscriber: @hgabor47
Gabor Horvath self-assigned this 2019-08-04 09:23:15 +02:00

I found this with Rigid Body Constraints. The connected parts oscillate between the orig pos and the cached animate position.
lawnmower_tut.blend

I found this with Rigid Body Constraints. The connected parts oscillate between the orig pos and the cached animate position. [lawnmower_tut.blend](https://archive.blender.org/developer/F7648407/lawnmower_tut.blend)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Yes, this has problems with the dependency graph [it is producing dependency cycles in 2.8, which is correct, whereas 2.79 somewhat made its way through in a hackish way...]

Dependency cycles for untitled.blend

Dependency cycle detected:
  OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() depends on
  OBCube.001/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init'
  OBCube.001/Transform Component/TRANSFORM_PARENT() via 'Eval'
  OBCube.001/Transform Component/TRANSFORM_LOCAL() via 'ObLocal -> ObParent'
  OBCube.001/Transform Component/TRANSFORM_INIT() via 'Transform Init'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'Parent'
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync'
  OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Object Transform -> Rigidbody Sim Eval'
Dependency cycle detected:
  OBCube.001/PointCache Component/POINT_CACHE_RESET() depends on
  OBCube.001/Transform Component/TRANSFORM_EVAL() via 'Transform Simulation -> Point Cache'
  OBCube.001/Transform Component/TRANSFORM_PARENT() via 'Eval'
  OBCube.001/Transform Component/TRANSFORM_LOCAL() via 'ObLocal -> ObParent'
  OBCube.001/Transform Component/TRANSFORM_INIT() via 'Transform Init'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'Parent'
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync'
  OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Object Transform -> Rigidbody Sim Eval'
  OBCube.001/PointCache Component/POINT_CACHE_RESET() via 'Point Cache -> Rigid Body'
Detected 2 dependency cycles

Dependency cycles for lawnmower_tut.blend

Dependency cycle detected:
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1'
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Dependency cycle detected:
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2'
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1'
  OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of'
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Dependency cycle detected:
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync'
  OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation'
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1'
  OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of'
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Dependency cycle detected:
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync'
  OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation'
  OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Dependency cycle detected:
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2'
  OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done'
  OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of'
  OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Detected 5 dependency cycles

Sooo, dependency cycles are not treated as bugs [unless they are plain wrong -- which doesnt seem to be the case here]
Note that #58044 (Issue with rigid body and modifiers dependent on transform) is related.
Still need to think a bit about passive rigid bodies though [unsure whether a passive rigid bodies transform really depends on Scenes Rigidbody Sim?]...

Yes, this has problems with the dependency graph [it is producing dependency cycles in 2.8, which is correct, whereas 2.79 somewhat made its way through in a hackish way...] Dependency cycles for `untitled.blend` ``` Dependency cycle detected: OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() depends on OBCube.001/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init' OBCube.001/Transform Component/TRANSFORM_PARENT() via 'Eval' OBCube.001/Transform Component/TRANSFORM_LOCAL() via 'ObLocal -> ObParent' OBCube.001/Transform Component/TRANSFORM_INIT() via 'Transform Init' OBCube/Transform Component/TRANSFORM_FINAL() via 'Parent' OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync' OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Object Transform -> Rigidbody Sim Eval' Dependency cycle detected: OBCube.001/PointCache Component/POINT_CACHE_RESET() depends on OBCube.001/Transform Component/TRANSFORM_EVAL() via 'Transform Simulation -> Point Cache' OBCube.001/Transform Component/TRANSFORM_PARENT() via 'Eval' OBCube.001/Transform Component/TRANSFORM_LOCAL() via 'ObLocal -> ObParent' OBCube.001/Transform Component/TRANSFORM_INIT() via 'Transform Init' OBCube/Transform Component/TRANSFORM_FINAL() via 'Parent' OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync' OBCube.001/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Object Transform -> Rigidbody Sim Eval' OBCube.001/PointCache Component/POINT_CACHE_RESET() via 'Point Cache -> Rigid Body' Detected 2 dependency cycles ``` Dependency cycles for `lawnmower_tut.blend` ``` Dependency cycle detected: OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1' OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Dependency cycle detected: OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2' OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1' OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done' OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of' OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Dependency cycle detected: OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync' OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation' OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1' OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done' OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of' OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Dependency cycle detected: OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync' OBBlade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation' OBBlade/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Dependency cycle detected: OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on OBblade/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2' OBblade/Transform Component/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done' OBCube/Transform Component/TRANSFORM_FINAL() via 'Child Of' OBCube/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Detected 5 dependency cycles ``` Sooo, dependency cycles are not treated as bugs [unless they are plain wrong -- which doesnt seem to be the case here] Note that #58044 (Issue with rigid body and modifiers dependent on transform) is related. Still need to think a bit about **passive** rigid bodies though [unsure whether a passive rigid bodies transform really depends on Scenes Rigidbody Sim?]...
Member

Closed as duplicate of #69065

Closed as duplicate of #69065
Member

Actually, we have another report about this, see #69065 (Bug on Rigid Body Simulation when an object is parented to another), will merge these reports...

Actually, we have another report about this, see #69065 (Bug on Rigid Body Simulation when an object is parented to another), will merge these reports...
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
3 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#68183
No description provided.