Bake All Dynamics not baking hair particles #70642
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#70642
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60
CPU : Intel i9-9900K
Blender Version
Broken: version: 2.81 (sub 14), branch: master, commit date: 2019-10-07 20:16, hash:
a856c5eccf
Worked: (optional)
Short description of error
When working with multiple particle emitters on a same object, The Bake All Dynamics button doesn't bake anything (when the particles are hair). I had the problem with 2.80 and checked with 2.81 if this was addressed but apparently not.
It is not very efficient to have to go through every particle system in the scene and bake them individually.
Especially since baking individually will only use one CPU core.
Perhaps a solution could be to start launching individual blender instances for every particle system ? This way it would make use of multiple cores. It is sad to see my cpu maxing out at 12% when baking a hair sim, while the other 7 cores are sitting idle…
If for some technical reason All Hair Dynamics cannot be baked with a single click, maybe gray out the Bake All Dynamics Button while in "hair" mode ? It would save a lot of people some time searching why this doesn't work...
Exact steps for others to reproduce the error
Just add a particle system, switch to hair instead of emitter, and Bake All Dynamics will do nothing.
BakeAllDynamics.blend
Added subscriber: @BenoitAlexis
Added subscriber: @lichtwerk
Some first notes (without diving deeper)
Afaics, if you are going for multiple hair systems on a single object,
Bake
[insteadBake All Dynamics
] will bake multiple hair systems (on that single object) at once (no need to do them separately)_00
and_01
), then cache to memory (disableDisk Cache
), then cache to disk again (enableDisk Cache
) --> (bug, two hair systems dont_00
and_01
)... needs further investigation...Now if you are using
Bake All Dynamics
:#62563, #62893 might be related
Added subscriber: @grosgood
Shades of #53083 perhaps?
Thanks for your reply. I've made some further investigating. I did notice what you suggested about two systems on a single object being baked simultaneously.
It is true when Disk Cache is enabled for both systems, and no name is given to the cache. When I bake only one, I see in the cache folder that two sets of .bphys are created for each frame. Named ###_00.bphys and ###_01.bphys
In the viewport the playback is good. However, as soon as I click on the second system, all the ###_01.bphys vanish, and the cache for this system disappears, stating "0 frames on disk, cache is outdated. And then the viewport is laggy as it caches the simulation of the second system again.
If I rename both caches to "Sys1" and "Sys2", the same thing happens. I do get both systems cached in the folder with the right names : "Sys1_#####00.bphys" and "Sys2#######_01.bphys", but as soon as I click on the other system, its cache is deleted from the folder. The order doesn't matter. First or second system baked first, the other's cache is later discarded.
Clicking "Current Cache to Bake" after baking "one" of the system does not solve this.
Thankfully, if I manually bake both systems individually the cache stays permenantly. But it is a tedious
Sorry to say that PointCaches are pretty new to me (just wrapping my head around this now)
I can also confirm that switching to the other particle system will delete the .bphys from disk, that needs to be investigated further.
For me though, giving them different names solves this, I can then select the other particle without loosing the .bphys
What I did find in a specific situation [regarding the case when blender only writes to _00 (instead of _00 and _01)] was:
ParticleSettings
has a pid->cache->index of 0ParticleSettings.001
has a pid->cache->index of -1 [ in that caseptcache_filename
callsBKE_object_insert_ptcache
but the list ofob->pc_ids
is empty?, we are not incrementing and eventually we end up with the_00
extension twice :( ]Aand, we still have the case where where hair (and keyed particles) are ommitted (on purpose?) for
Bake All Dynamics
(relating to #53083).Stay tuned.
FYI, the skipping of hair particles with Bake All Dynamics was introduced in
66918b3add
.On first sight, I dont see a particular reason to skip [tested non-skipping which seems to work], but this is ancient, so I guess this has never been considered a bug...
I propose to split this report up:
Bake All Dynamics
skipping hair particles is really a duplicate of #53083 and should be merged into that report [afraid this is not really abug in the end...]Thank you very much for your time ! here is the new report for the "vanishing cache" : #70696
Maybe the Bake All Dynamics issue is not really a bug since it was coded that way, but its behavior is really confusing for the user, and quite honestly it represents a lot of wasted time, I can't imagine how so few people have reported this so far. So should it be a feature request then ?
Thx for the new report!
I will merge this report with #53083 then... [lets keep discussion about its status (bug? feature request?) in there... and yep, if find this unclear as well]
Closed as duplicate of #53083