Add Support of PointCaches to Library Overrides #82503
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#82503
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?
Support baking simulations into PointCaches for library overrides.
Milestone 1 - Minimal Viable Product - 2.92
59910f7217
,50ccf346f0
,13bcb000fa
,b073f58a8e
).Milestone 2 - Support memory cache - ???
Milestone 3 - Potential Extensions - ???
Those will require #82160 (LibOverrides - Refactor how diffing of RNA collections is handled, and extend diffing possibilities.) to be tackled first.
Original Report
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.09
Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-06 19:20, hash:
d2c102060d
Short description of error
Cloth sim bakes work great on library overrides until you save and reload. Then the bake is lost.
Exact steps for others to reproduce the error
Cloth.blend
Library Override.blend
Download both files
Open "Library Override.blend"
Press Bake
Save
Reload
Added subscriber: @zanqdo
Added subscribers: @mont29, @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm.
Not totally sure about how much is supported here, think @mont29 would know best.
Thanks for the report, but this is indeed not a bug, and is not intended to work currently. We need to find a proper way to swap back local point caches and linked ones, but this is not straightforward as there may be differences (especially due to modifiers).
So I believe the best way to deal with this would be to use Disk cache for the time being.
Removed subscriber: @mont29
Added subscriber: @mont29
@mont29 Thanks but how does it work?
I tried enabling the disk cache option in the character file. But in the linked file the setting will be disabled and there's nothing I can do to enable it.
For the records, I've been trying to understand what is going on with those pointcaches, so far no luck...
Have a basic patch to enable some of their properties for override, and get better control over the operators (Bake & co) in override cases, but there is a very weird thing happening here.
Those properties do not get overridden properly, their values keep changing randomly... There must be some dark RNA magic happening here. :(
Thanks for taking a look!
This issue was referenced by
59910f7217
This issue was referenced by
50ccf346f0
Bake to disk should now work in master (has been tough to track down, we had a pile of non-obvious issues to solve there...).
Supporting bake in memory is for later, this is trickier to do properly.
I gave it a test and it did work on 2 out of 3 characters strangely enough! I have simplified as much as I could and here are the test files:
Original.blend
Library Override.blend
Download both files to the same directory
Open Library override
Bake
Save
Reload
Actually I just lost another character's bake I don't know how. So I guess it's affecting all objects.
This issue was referenced by
13bcb000fa
Should be fixed "good enough" by
13bcb000fa
Locally baked cloth simulations on library overrides are lost after reloadto Add Support of PointCaches to Library OverridesAdded subscriber: @Threedio
Hi Bastien,
If I'm reading 13bcb000fa: "Fix broken pointcache on disk in some cases" correctly, the fix is committed and should be in the latest 2.92 alpha builds, am I correct? But I re-tested this bug in the Jan 5 build of 2.92 alpha (blender-2.92.0-9b17e71c23a9) and the Jan 5 build of the experimental-build branch (experimental-build-blender-2.92.0-123fd3d5c446) and am having the same issue originally reported. I'll attach my {F9551380}test files (without the bake cache to save space); here's how I reproduced the error:
create model/hairy.cube.blend
create scene/bugtest.scene.blend
observe the bug
other observations
I am new to the blender dev forums so I hope I've approached the test correctly.
@Threedio besides the fact that you forget the
Save
step at the end of yourcreate scene/bugtest.scene.blend
section, did those steps and it works for me?Hi Bastien,
Ha yes I definitely saved my file after baking the frames. That is peculiar that it is working for you and not for me -- which release are you testing with?
I'm going to try it on my linux box and see if I get the same results, as an additional test.
I was able to reproduce the issue on my linux box too. Attached is a video of me reproducing the error on my Windows box -- hopefully I am not embarrassing myself with some kind of user error. Untitled1.mp4
To further illustrate the issue, I added a second linked library override cube to my scene, and for the second cube, I did Make Local --> Object and Data. Side by side I can show that the local object retains its cache but the linked object does not. I'll attach the blend files here (bugtest.13bcb000fa81-2021-01-08.zip) and a screencast depicting the issue.
bugtest2.mp4
Arf, spent quiet some time on this, but this is in fact only a display issue (message is not updated when reading overrides, but cache is indeed there, and is used perfectly).
Found other issues regarding hair cache settings though, thanks to that same unique pointcache being exposed in four different RNA paths... sigh
Rats. In an animated feature I'm working on, I have a much more complicated scene, and when I bake and render the animation, the hair dynamics of my library override characters animate correctly, but if I bake, save and close, and render from the command line, the hair dynamics are lost. I thought I had targetted the issue, but you are right, I was on the wrong track with this display bug. I will try again to distill my issue down to a simple test case. Sorry for the red herring!
UI message not being updated shall be fixed now (
be7106a974
). Also fixed the hair-specific issues incd8893d446
.Added subscriber: @PrettyFireNOI7
Added subscriber: @StephenHamacek
I'm trying to bake cloth/disk cache on an overridden character, but sadly just get a hard crash when I hit bake. Shouldn't be a computer performance issue as I can still bake using the old 'pin the object panel' method that I've been using for years with proxy characters.
I also tried making the garment object local after creating the character override. This gave me (visually at least) access to all the cloth mod settings, which is my holy grail for per-scene baking. But sadly also a hard crash on 'bake'.
(Mac 2.93 LTS)
Is this still being looked at and should I try getting a .blend file together? Many thanks
I get a seg fault 11 on these hard crashes, thread 0. Here's the first part of the crash report. I'd love to know how people are managing to bake, maybe a mac thing. I'll try to put together a stripped down .blend and submit a bug report
@StephenHamacek ah missed your messages, please report a new bug if this is still an issue, comments in design or TODO tasks is not the proper way to do so and might be missed. ;)
This issue was referenced by
b073f58a8e