Wrong time delta for Cloth Fluid Density #89718

Open
opened 2021-07-07 22:48:53 +02:00 by Will · 5 comments

System Information
Operating system: Antarctic Waterfowl Delight (Linux)
Graphics card: Intel

Blender Version
Broken: 2.93

Short description of error

Instead of imparting the same impulse per volume per time delta, the "Fluid Density" setting for cloth simulations seems to impart the same impulse per volume per simulation step.

The result is that cloths with higher "Quality Steps" will fall more quickly.

Animated GIF:

Wrong.gif

The two Suzannes have exactly the same cloth sim settings, excepting that the one on the left has 5 for "Quality Steps" and the one on the right has only 1.

A lot of instability and slight accumulated positional variance is of course to be expected with different step sizes. But my understanding is that the physical forces in the sim should be scaled (and most of them are scaled) so they behave consistently with scene time or scene frames, not with simulation steps.

Setting the density to 0.0 does indeed produce much more time-consistent results, even though the quality steps settings are still different:

Right.gif

Exact steps for others to reproduce the error

  • Enable cloth simulation on a solid/manifold mesh object.

  • Set and enable a non-zero fluid density for the sim.

  • Duplicate the object.

  • Give the duplicate's cloth sim a different "Quality Steps" setting, but leave everything else the same.

Or download the attached file:

ClothDensityTimescale.blend

**System Information** Operating system: Antarctic Waterfowl Delight (Linux) Graphics card: Intel **Blender Version** Broken: 2.93 **Short description of error** Instead of imparting the same impulse per volume per time delta, the "Fluid Density" setting for cloth simulations seems to impart the same impulse per volume per simulation step. The result is that cloths with higher "Quality Steps" will fall more quickly. Animated GIF: ![Wrong.gif](https://archive.blender.org/developer/F10216308/Wrong.gif) The two Suzannes have exactly the same cloth sim settings, excepting that the one on the left has 5 for "Quality Steps" and the one on the right has only 1. A lot of instability and slight accumulated positional variance is of course to be expected with different step sizes. But my understanding is that the physical forces in the sim should be scaled (and most of them are scaled) so they behave consistently with scene time or scene frames, not with simulation steps. Setting the density to 0.0 does indeed produce much more time-consistent results, even though the quality steps settings are still different: ![Right.gif](https://archive.blender.org/developer/F10216309/Right.gif) **Exact steps for others to reproduce the error** * Enable cloth simulation on a solid/manifold mesh object. * Set and enable a non-zero fluid density for the sim. * Duplicate the object. * Give the duplicate's cloth sim a different "Quality Steps" setting, but leave everything else the same. Or download the attached file: [ClothDensityTimescale.blend](https://archive.blender.org/developer/F10216313/ClothDensityTimescale.blend)
Author

Added subscriber: @WCN

Added subscriber: @WCN
Author

Results from trying to nail down causes of the remaining variance in my project:

  • Pressure is correctly time-consistent.

  • The "Wind" force field is correctly time-consistent.

Vertex mass, air viscosity, gravity, etc. are all clearly time-consistent as well, so it looks like Fluid Density is so far the only obvious parameter that's applied per simulation step instead of per scene time.

Results from trying to nail down causes of the remaining variance in my project: * Pressure is correctly time-consistent. * The "Wind" force field is correctly time-consistent. Vertex mass, air viscosity, gravity, etc. are all clearly time-consistent as well, so it looks like Fluid Density is so far the only obvious parameter that's applied per simulation step instead of per scene time.

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

This sort of inaccuracy is generally to be expected when interacting with complex simulations. However, this could be a result of the pressure simulation not being scaled correctly with the quality steps.

Unfortunately there is no active developer maintaining the cloth simulator at this point who can look into complex issues like this. There are loose plans to replace it in the near future though.

This sort of inaccuracy is generally to be expected when interacting with complex simulations. However, this could be a result of the pressure simulation not being scaled correctly with the quality steps. Unfortunately there is no active developer maintaining the cloth simulator at this point who can look into complex issues like this. There are loose plans to replace it in the near future though.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:44:45 +01: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
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#89718
No description provided.