Hair Dynamics Strange Behaviour #80438

Open
opened 2020-09-03 19:40:57 +02:00 by Discko · 7 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67

Broken: version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: 0330d1af29

I have not seen hair behave this way before. For this example file, I have simply used the default hair dynamics settings. I have a bake in the file attached, and you can try bake yourself to replicate the issue. The hair will fly all over the place, it is not colliding with anything and I cannot figure out what is causing the issue. It was recommended by a developer that I post the issue here for others to have a look, many thanks.
HairProb.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67 Broken: version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: `0330d1af29` I have not seen hair behave this way before. For this example file, I have simply used the default hair dynamics settings. I have a bake in the file attached, and you can try bake yourself to replicate the issue. The hair will fly all over the place, it is not colliding with anything and I cannot figure out what is causing the issue. It was recommended by a developer that I post the issue here for others to have a look, many thanks. [HairProb.blend](https://archive.blender.org/developer/F8836868/HairProb.blend)
Author

Added subscriber: @Discko

Added subscriber: @Discko
Author

HairProb.blend

Interesting test, on the left is a singular strand of the problematic hair - gyrating around and doing it's own thing. In the middle is a brand new UV sphere with a new particle system completely at default settings, behaves normally - On the right is another new UV sphere, with the same particle system as the odd behaving hair - but it behaves fine

[HairProb.blend](https://archive.blender.org/developer/F8848200/HairProb.blend) Interesting test, on the left is a singular strand of the problematic hair - gyrating around and doing it's own thing. In the middle is a brand new UV sphere with a new particle system completely at default settings, behaves normally - On the right is another new UV sphere, with the same particle system as the odd behaving hair - but it behaves fine

Added subscriber: @ZedDB

Added subscriber: @ZedDB

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

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

I can reproduce this.

It seems like the simulated hair will start freaking out if it is edited into a "C" shape:
recording.mp4

I'm guessing that the cloth/hair springs gets bad initial values somehow perhaps. I haven't looked into it deeply yet though.

I can reproduce this. It seems like the simulated hair will start freaking out if it is edited into a "C" shape: [recording.mp4](https://archive.blender.org/developer/F8851136/recording.mp4) I'm guessing that the cloth/hair springs gets bad initial values somehow perhaps. I haven't looked into it deeply yet though.
Member

Will tag this as a known issue, since particles aren't actively maintained. The explanation by @ZedDB is probably correct. Because the hair sim literally uses a cloth solver i suspect that the spring model runs into an unsupported case here, possibly combined with a buggy implementation.

Hand-wavy explanation: Multiple connected bending springs cause buckling. This shouldn't introduce energy, but that might be a bug or just numerical instability.
20240620_163346

I will call this a known issue, since the old cloth/hair sim isn't actively maintained.

Will tag this as a known issue, since particles aren't actively maintained. The explanation by @ZedDB is probably correct. Because the hair sim literally uses a __cloth__ solver i suspect that the spring model runs into an unsupported case here, possibly combined with a buggy implementation. Hand-wavy explanation: Multiple connected bending springs cause [buckling](https://en.wikipedia.org/wiki/Buckling). This shouldn't introduce energy, but that might be a bug or just numerical instability. ![20240620_163346](/attachments/6e18e26a-9d13-442f-845c-fdc0775fc63b) I will call this a known issue, since the old cloth/hair sim isn't actively maintained.
Lukas Tönne added
Type
Known Issue
and removed
Type
Bug
labels 2024-06-20 16:42:42 +02:00
Member

It's an interesting demonstration of why a solver made for cloth is not necessarily ideal for a hair. The bending springs on corners leave the rotation around the spring axis totally unconstrained, in other words there is no twist stiffness at all. That means adjacent constraints can be solved by simply rotating around that axis without violating the first constraint. This numerically adds kinetic energy because points are moved without changing equivalent potential energy. The result is the instability observed.

A dedicated elastic rod model takes twist energy into account and is much more suitable for hair simulation, but out of scope for a simple bug fix here.

It's an interesting demonstration of why a solver made for cloth is not necessarily ideal for a hair. The bending springs on corners leave the rotation around the spring axis totally unconstrained, in other words there is no twist stiffness at all. That means adjacent constraints can be solved by simply rotating around that axis without violating the first constraint. This numerically adds kinetic energy because points are moved without changing equivalent potential energy. The result is the instability observed. A dedicated _elastic rod_ model takes twist energy into account and is much more suitable for hair simulation, but out of scope for a simple bug fix here.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#80438
No description provided.